mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 04:35:09 +01:00
Fix playback error when switching episode
This commit is contained in:
parent
b588585af5
commit
2953b8f29f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user