From c561fb9e2e42e4968f2b48cd535f208e90f8c12c Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 24 Feb 2020 01:19:30 +0300 Subject: More playlist and video control --- src/Types.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Types.hx') diff --git a/src/Types.hx b/src/Types.hx index 643fd4f..f2b506f 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -66,7 +66,8 @@ typedef WsEvent = { clients:Array, }, ?addVideo:{ - item:VideoItem + item:VideoItem, + atEnd:Bool }, ?removeVideo:{ url:String @@ -89,6 +90,9 @@ typedef WsEvent = { }, ?setLeader:{ clientName:String + }, + ?updatePlaylist:{ + videoList:Array } } @@ -111,4 +115,7 @@ enum abstract WsEventType(String) { var Rewind; var SetLeader; var ClearChat; + var ClearPlaylist; + var ShufflePlaylist; + var UpdatePlaylist; } -- cgit v1.2.3