mirror of
https://github.com/9001/copyparty.git
synced 2025-08-20 02:12:20 -06:00
handle unsupported codecs better
This commit is contained in:
parent
58040cc0ed
commit
fed8d94885
|
@ -242,8 +242,8 @@ var pbar = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.drawpos = function () {
|
r.drawpos = function () {
|
||||||
if (!mp.au)
|
if (!mp.au || isNaN(mp.au.duration) || isNaN(mp.au.currentTime))
|
||||||
return;
|
return; // not-init || unsupp-codec
|
||||||
|
|
||||||
var bc = r.buf,
|
var bc = r.buf,
|
||||||
pc = r.pos,
|
pc = r.pos,
|
||||||
|
|
Loading…
Reference in a new issue