compensate for play/pause fades by rewinding a bit

This commit is contained in:
ed 2022-05-02 19:07:16 +02:00
parent 63a5336f31
commit 22e51e1c96

View file

@ -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;