aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/client.js5
-rw-r--r--src/client/players/Raw.hx3
2 files changed, 7 insertions, 1 deletions
diff --git a/res/client.js b/res/client.js
index 787dcf6..e469a33 100644
--- a/res/client.js
+++ b/res/client.js
@@ -1,4 +1,4 @@
-// Generated by Haxe 4.1.0
+// Generated by Haxe 4.1.1
(function ($hx_exports, $global) { "use strict";
$hx_exports["client"] = $hx_exports["client"] || {};
$hx_exports["client"]["JsApi"] = $hx_exports["client"]["JsApi"] || {};
@@ -2308,6 +2308,9 @@ client_players_Raw.prototype = {
if(this.video == null) {
return;
}
+ this.video.pause();
+ this.video.removeAttribute("src");
+ this.video.load();
this.playerEl.removeChild(this.video);
this.video = null;
}
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