diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 679c6fa5..b7292ae7 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -242,8 +242,8 @@ var pbar = (function () { }; r.drawpos = function () { - if (!mp.au) - return; + if (!mp.au || isNaN(mp.au.duration) || isNaN(mp.au.currentTime)) + return; // not-init || unsupp-codec var bc = r.buf, pc = r.pos,