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/Player.hx | |
| parent | f2567959538d7a7b26aa405353c2dbea4e6cc945 (diff) | |
Playlists "at next" order
Diffstat (limited to 'src/client/Player.hx')
| -rw-r--r-- | src/client/Player.hx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx index dd49ab4..7de6d36 100644 --- a/src/client/Player.hx +++ b/src/client/Player.hx @@ -5,6 +5,7 @@ import client.Main.ge; import client.players.Raw; import client.players.Youtube; import client.players.Iframe; +import Types.VideoDataRequest; import Types.VideoData; import Types.VideoItem; using StringTools; @@ -97,14 +98,14 @@ class Player { player = newPlayer; } - public function getVideoData(url:String, callback:(data:VideoData)->Void):Void { - var player = players.find(player -> player.isSupportedLink(url)); + public function getVideoData(data:VideoDataRequest, callback:(data:VideoData)->Void):Void { + var player = players.find(player -> player.isSupportedLink(data.url)); if (player == null) player = rawPlayer; - player.getVideoData(url, callback); + player.getVideoData(data, callback); } - public function getIframeData(iframe:String, callback:(data:VideoData)->Void):Void { - iframePlayer.getVideoData(iframe, callback); + public function getIframeData(data:VideoDataRequest, callback:(data:VideoData)->Void):Void { + iframePlayer.getVideoData(data, callback); } public function setVideo(i:Int):Void { |
