aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Raw.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-22 19:20:45 +0300
committerRblSb <msrblsb@gmail.com>2020-05-22 19:20:45 +0300
commit752c2dad8e908344aa1c735802d234ed7f3e3e51 (patch)
treec4957d87ebcf0b4d517d10a2b3794e6d78333e00 /src/client/players/Raw.hx
parentd67aa13cca38d3f116d8cf95caa514104bd68c82 (diff)
Improve raw video remove
Diffstat (limited to 'src/client/players/Raw.hx')
-rw-r--r--src/client/players/Raw.hx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/players/Raw.hx b/src/client/players/Raw.hx
index d8aa57b..4e23ccb 100644
--- a/src/client/players/Raw.hx
+++ b/src/client/players/Raw.hx
@@ -116,6 +116,9 @@ class Raw implements IPlayer {
public function removeVideo():Void {
if (video == null) return;
+ video.pause();
+ video.removeAttribute("src");
+ video.load();
playerEl.removeChild(video);
video = null;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage