adjust timeout

This commit is contained in:
Slowlife01
2025-03-16 21:25:04 +07:00
parent 2530740066
commit 36cf513431

View File

@@ -323,6 +323,8 @@ class ZenMediaController {
}
if (this.mediaControllersMap.size === 1) timeout = 0;
if (this.mediaControlBar.hasAttribute('hidden')) timeout = 0;
this._controllerSwitchTimeout = setTimeout(() => {
if (!this._currentMediaController?.isPlaying || force) {
const nextController = Array.from(this.mediaControllersMap.values())