mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-16 06:55:12 +00: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 a new issue