From 8c739fa43946ba8cc5bc6c6226032154b9481a40 Mon Sep 17 00:00:00 2001 From: RblSb Date: Thu, 27 Feb 2020 20:24:51 +0300 Subject: Permanent items and player abstraction --- src/Types.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Types.hx') diff --git a/src/Types.hx b/src/Types.hx index 5706111..b98a6c2 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -35,7 +35,8 @@ typedef VideoItem = { url:String, title:String, author:String, - duration:Float + duration:Float, + isTemp:Bool } typedef WsEvent = { @@ -47,6 +48,7 @@ typedef WsEvent = { isUnknownClient:Bool, clientName:String, videoList:Array, + itemPos:Int, globalIp:String }, ?login:{ @@ -73,6 +75,9 @@ typedef WsEvent = { ?removeVideo:{ url:String }, + ?skipVideo:{ + url:String + }, ?pause:{ time:Float }, @@ -108,6 +113,7 @@ enum abstract WsEventType(String) { // var RemoveClient; var AddVideo; var RemoveVideo; + var SkipVideo; var VideoLoaded; var Pause; var Play; -- cgit v1.2.3