From c5903d5670dad72c840c30a302f8238c8cff9f8a Mon Sep 17 00:00:00 2001 From: RblSb Date: Fri, 28 Feb 2020 10:40:53 +0300 Subject: Implement video item buttons --- src/Types.hx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Types.hx') diff --git a/src/Types.hx b/src/Types.hx index b98a6c2..17b010b 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -97,6 +97,15 @@ typedef WsEvent = { ?setLeader:{ clientName:String }, + ?playItem:{ + pos:Int + }, + ?setNextItem:{ + pos:Int + }, + ?toggleItemType:{ + pos:Int + }, ?updatePlaylist:{ videoList:Array } @@ -121,6 +130,9 @@ enum abstract WsEventType(String) { var SetTime; var Rewind; var SetLeader; + var PlayItem; + var SetNextItem; + var ToggleItemType; var ClearChat; var ClearPlaylist; var ShufflePlaylist; -- cgit v1.2.3