mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 21:06:15 -08:00
优化背光刷新频率
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user