Update css/player-base-new.js

This commit is contained in:
ashley 2025-08-28 23:30:40 +02:00
parent 385c8a1486
commit aee9da5c86

View File

@ -17,18 +17,9 @@ var _yt_player = videojs;
const vidKey = qs.get('v') || '';
const PROG_KEY = vidKey ? `progress-${vidKey}` : null;
});
function clearFalseErrorUI() {
try {
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 => {
video.on(ev, clearFalseErrorUI);
});
video.removeClass('vjs-error');
// persist last position (quietly)
let lastSaved = 0;