aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/IPlayer.hx
blob: e8835d1a02269149ad9d52b022595d81453e687b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package client;

import Types.PlayerType;
import Types.VideoData;
import Types.VideoDataRequest;
import Types.VideoItem;

interface IPlayer {
	function getPlayerType():PlayerType;
	function isSupportedLink(url:String):Bool;
	function getVideoData(data:VideoDataRequest, callback:(data:VideoData) -> Void):Void;
	function loadVideo(item:VideoItem):Void;
	function removeVideo():Void;
	function isVideoLoaded():Bool;
	function play():Void;
	function pause():Void;
	function isPaused():Bool;
	function getTime():Float;
	function setTime(time:Float):Void;
	function getPlaybackRate():Float;
	function setPlaybackRate(rate:Float):Void;
	function getVolume():Float;
	function setVolume(volume:Float):Void;
	function unmute():Void;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage