遇到安卓h5播放视频全屏时黑屏但有声音,主要在vivo手机上(例如vivo x60),已是最新微信版本,复现方法:多次全屏/退出 触发全屏 和 退出全屏方法如下,触发全屏在问题机器上使用的是requestFullscreen getFullscreen (el) { let player = this if (el.requestFullscreen) { el.requestFullscreen() } else if (el.mozRequestFullScreen) { el.mozRequestFullScreen() } else if (el.webkitRequestFullscreen) { el.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) } else if (player.video.webkitSupportsFullscreen) { player.video.webkitEnterFullscreen() } else if (el.msRequestFullscreen) { el.msRequestFullscreen() } } exitFullscreen (el) { if (document.exitFullscreen) { document.exitFullscreen() } else if (document.webkitExitFullscreen) { document.webkitExitFullscreen() } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen() } else if (document.msExitFullscreen) { document.msExitFullscreen() } }
Android微信H5播放video,点击全屏出现页面卡死/黑屏/白屏的情况,点击返回按钮恢复正常?问题描述:视频无法全屏播放 问题表现形式: 1.点击全屏按钮没有反应(但是课程会停止播放,点击返回键会恢复播放) 2.点击全屏按钮黑屏 反馈的设备:华为荣耀/小米/OPPO A3/三星A5,微信版本8.0.10,8.0.11都有,系统版本android10和android11都有
2021-11-25