mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
compensate for play/pause fades by rewinding a bit
This commit is contained in:
parent
63a5336f31
commit
22e51e1c96
|
@ -613,6 +613,10 @@ function MPlayer() {
|
|||
r.fvol = 0;
|
||||
r.au.pause();
|
||||
mpl.pp();
|
||||
|
||||
var t = mp.au.currentTime - 0.8;
|
||||
if (isFinite(t))
|
||||
mp.au.currentTime = Math.max(t, 0);
|
||||
}
|
||||
else if (r.fvol > r.vol)
|
||||
r.fvol = r.vol;
|
||||
|
|
Loading…
Reference in a new issue