mirror of
https://github.com/sussy-code/smov.git
synced 2026-04-20 16:12:21 +00:00
Fix playback error when switching episode
This commit is contained in:
parent
b588585af5
commit
2953b8f29f
1 changed files with 4 additions and 1 deletions
|
|
@ -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