Browse Source

Fix playback error when switching episode

pull/497/head
mrjvs 2 years ago
parent
commit
2953b8f29f
  1. 5
      src/components/player/display/base.ts

5
src/components/player/display/base.ts

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

Loading…
Cancel
Save