[英]Canvas fullscreen on mobile devices causes power down
How can i make a Canvas Element fullscreen and bypass the power saving feature of the mobile device.如何使 Canvas 元素全屏并绕过移动设备的省电功能。 My canvas is playing a video but the mobile phone go's into power saving mode after a few seconds.
我的 canvas 正在播放视频,但手机在几秒钟后进入省电模式。 Is there some setting somewhere?
某处有什么设置吗?
this is my fullscreen function这是我的全屏 function
let openFullscreen = (elem) => {
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.mozRequestFullScreen) { /* Firefox */
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE/Edge */
elem.msRequestFullscreen();
}
} }
A possible reason why this could be happening is because the video is muted发生这种情况的一个可能原因是视频已静音
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.