aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-27 20:24:51 +0300
committerRblSb <msrblsb@gmail.com>2020-02-27 20:24:51 +0300
commit8c739fa43946ba8cc5bc6c6226032154b9481a40 (patch)
tree8e112fdf4fe4d9d2fbe851e4bbdce56ec8298d16 /src/Types.hx
parent2c7811e0c56d5c33ab0138b6dcd281f516bff809 (diff)
Permanent items and player abstraction
Diffstat (limited to 'src/Types.hx')
-rw-r--r--src/Types.hx8
1 files changed, 7 insertions, 1 deletions
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<VideoItem>,
+ 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;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage