From d31f0b30481f6180e7907aee27413e5d208539aa Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 7 Jun 2020 18:45:22 +0300 Subject: Playlists "at next" order --- src/client/players/Iframe.hx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/client/players/Iframe.hx') 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 { -- cgit v1.2.3