mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 05:02:28 -06:00
fix instant unpause after previous fadeout
This commit is contained in:
parent
dfc02f3139
commit
790dc38ff6
|
|
@ -2227,21 +2227,22 @@ function MPlayer() {
|
||||||
// insta start
|
// insta start
|
||||||
r.fvol = r.vol;
|
r.fvol = r.vol;
|
||||||
mpss.go();
|
mpss.go();
|
||||||
|
r.au.volume = r.expvol(r.fvol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
r.fade_out = function () {
|
r.fade_out = function () {
|
||||||
mpss.stop();
|
mpss.stop();
|
||||||
if(mpl.afade == false){
|
|
||||||
// insta stop
|
|
||||||
r.au.pause();
|
|
||||||
mpl.pp();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
r.fvol = r.vol;
|
r.fvol = r.vol;
|
||||||
r.fdir = -0.05 * r.vol * (CHROME ? 2 : 1);
|
r.fdir = -0.05 * r.vol * (CHROME ? 2 : 1);
|
||||||
r.ftid = r.au.tid;
|
r.ftid = r.au.tid;
|
||||||
fader();
|
if(mpl.afade != false)
|
||||||
|
fader();
|
||||||
|
else {
|
||||||
|
// insta stop
|
||||||
|
r.au.pause();
|
||||||
|
mpl.pp();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
r.stopfade = function (hard) {
|
r.stopfade = function (hard) {
|
||||||
clearTimeout(r.ftimer);
|
clearTimeout(r.ftimer);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue