From 2ade04273717807096a07b6eb132b7677917392d Mon Sep 17 00:00:00 2001 From: RblSb Date: Sat, 29 Feb 2020 14:01:12 +0300 Subject: Get youtube video title/duration with api --- src/client/IPlayer.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/IPlayer.hx') diff --git a/src/client/IPlayer.hx b/src/client/IPlayer.hx index a20b22b..4f29512 100644 --- a/src/client/IPlayer.hx +++ b/src/client/IPlayer.hx @@ -1,9 +1,10 @@ package client; +import Types.VideoData; import Types.VideoItem; interface IPlayer { - function getRemoteDuration(url:String, callback:(duration:Float)->Void):Void; + function getVideoData(url:String, callback:(data:VideoData)->Void):Void; function loadVideo(item:VideoItem):Void; function removeVideo():Void; function play():Void; -- cgit v1.2.3