Fix playback error when switching episode

This commit is contained in:
mrjvs 2023-10-31 19:13:35 +01:00
parent b588585af5
commit 2953b8f29f

View File

@ -206,7 +206,10 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
}
function unloadSource() {
if (videoElement) videoElement.src = "";
if (videoElement) {
videoElement.removeAttribute("src");
videoElement.load();
}
if (hls) {
hls.destroy();
hls = null;