优化背光刷新频率

This commit is contained in:
zhw2590582 committed 2020-02-29 23:03:44 +08:00
1 parent c7a351bc55
commit 2d4da12180
3 files changed
+10 -10

No files matched your search

@@ -101,7 +101,7 @@
$player.insertBefore($backlight, $video);
(function loop() {
window.requestAnimationFrame(function () {
setTimeout(function () {
if (player.playing) {
var clientWidth = $video.clientWidth,
clientHeight = $video.clientHeight;
@@ -128,7 +128,7 @@
if (!art.isDestroy) {
loop();
}
});
}, 200);
})();
return {