aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Iframe.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-04-23 22:48:37 +0300
committerRblSb <msrblsb@gmail.com>2020-04-24 05:29:48 +0300
commit177057877733c33aadbb11b5884fe2c4a3e13de5 (patch)
tree50035a705fa21f333f66485fe724d5c52e7fc5d5 /src/client/players/Iframe.hx
parent3e1f20569d467160dfe578bd80393a528dc60db7 (diff)
Fix youtube bg autoplay
Diffstat (limited to 'src/client/players/Iframe.hx')
-rw-r--r--src/client/players/Iframe.hx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/players/Iframe.hx b/src/client/players/Iframe.hx
index d79196b..1bb9855 100644
--- a/src/client/players/Iframe.hx
+++ b/src/client/players/Iframe.hx
@@ -20,6 +20,10 @@ class Iframe implements IPlayer {
this.player = player;
}
+ public function isSupportedLink(url:String):Bool {
+ return true;
+ }
+
public function getVideoData(url:String, callback:(data:VideoData)->Void):Void {
callback({
duration: 99 * 60 * 60,
@@ -28,6 +32,7 @@ class Iframe implements IPlayer {
}
public function loadVideo(item:VideoItem):Void {
+ removeVideo();
video = document.createDivElement();
video.id = "videoplayer";
video.innerHTML = item.url;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage