mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
actually fix autoplay on some chromes
This commit is contained in:
parent
f1870daf0d
commit
ea38b8041a
|
@ -1296,18 +1296,10 @@ function autoplay_blocked(seek) {
|
||||||
go.textContent = 'Play "' + fn + '"';
|
go.textContent = 'Play "' + fn + '"';
|
||||||
go.onclick = function (e) {
|
go.onclick = function (e) {
|
||||||
unblocked(e);
|
unblocked(e);
|
||||||
mp.au.play();
|
// chrome 91 may permanently taint on a failed play()
|
||||||
if (mp.au.paused) {
|
// depending on win10 settings or something? idk
|
||||||
console.log("reload tid " + tid);
|
mp.au_native = mp.au_ogvjs = null;
|
||||||
reload_mp();
|
play(tid, seek);
|
||||||
return play(tid, seek);
|
|
||||||
}
|
|
||||||
if (seek)
|
|
||||||
seek_au_sec(seek);
|
|
||||||
else
|
|
||||||
mpui.progress_updater();
|
|
||||||
|
|
||||||
mpl.announce();
|
|
||||||
};
|
};
|
||||||
na.onclick = unblocked;
|
na.onclick = unblocked;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue