From fed8d94885510c8bd4b33e9246c25ad02b9709e3 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 18 May 2021 03:44:30 +0200 Subject: [PATCH] handle unsupported codecs better --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,