mirror of
https://github.com/9001/copyparty.git
synced 2026-03-13 19:54:09 +10:00
compensate for play/pause fades by rewinding a bit
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user