Update css/player-base-new.js

This commit is contained in:
ashley 2025-08-28 23:28:28 +02:00
parent d2a330ba41
commit 21367d1298

View File

@ -20,14 +20,14 @@ var _yt_player = videojs;
function clearFalseErrorUI() {
try {
if (typeof player.error === 'function') player.error(null);
player.removeClass('vjs-error');
const ed = player.getChild && player.getChild('errorDisplay');
if (typeof video.error === 'function') video.error(null);
video.removeClass('vjs-error');
const ed = video.getChild && video.getChild('errorDisplay');
if (ed && typeof ed.hide === 'function') ed.hide();
} catch {}
}
['loadstart','loadedmetadata','canplay','playing','timeupdate','seeked'].forEach(ev => {
player.on(ev, clearFalseErrorUI);
video.on(ev, clearFalseErrorUI);
});
// persist last position (quietly)