diff options
| author | RblSb <msrblsb@gmail.com> | 2020-06-07 18:45:22 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-06-07 18:45:22 +0300 |
| commit | d31f0b30481f6180e7907aee27413e5d208539aa (patch) | |
| tree | ad1281ef9f5100bd05108dc42b8f5107f585444a /src/client/players/Iframe.hx | |
| parent | f2567959538d7a7b26aa405353c2dbea4e6cc945 (diff) | |
Playlists "at next" order
Diffstat (limited to 'src/client/players/Iframe.hx')
| -rw-r--r-- | src/client/players/Iframe.hx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/players/Iframe.hx b/src/client/players/Iframe.hx index 2f875fb..ae37c94 100644 --- a/src/client/players/Iframe.hx +++ b/src/client/players/Iframe.hx @@ -1,10 +1,9 @@ package client.players; -import haxe.Timer; import js.html.Element; -import js.html.VideoElement; import js.Browser.document; import client.Main.ge; +import Types.VideoDataRequest; import Types.VideoData; import Types.VideoItem; @@ -24,9 +23,9 @@ class Iframe implements IPlayer { return true; } - public function getVideoData(data:String, callback:(data:VideoData)->Void):Void { + public function getVideoData(data:VideoDataRequest, callback:(data:VideoData)->Void):Void { final iframe = document.createDivElement(); - iframe.innerHTML = data; + iframe.innerHTML = data.url; if (isValidIframe(iframe)) { callback({duration: 99 * 60 * 60}); } else { |
