diff options
| author | RblSb <msrblsb@gmail.com> | 2020-04-23 22:48:37 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-04-24 05:29:48 +0300 |
| commit | 177057877733c33aadbb11b5884fe2c4a3e13de5 (patch) | |
| tree | 50035a705fa21f333f66485fe724d5c52e7fc5d5 /src/client/players/Iframe.hx | |
| parent | 3e1f20569d467160dfe578bd80393a528dc60db7 (diff) | |
Fix youtube bg autoplay
Diffstat (limited to 'src/client/players/Iframe.hx')
| -rw-r--r-- | src/client/players/Iframe.hx | 5 |
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; |
