From ec7e4b5ad120828f1464cf4186287d4928b462a8 Mon Sep 17 00:00:00 2001 From: RblSb Date: Fri, 28 Feb 2020 19:55:32 +0300 Subject: Youtube player support --- build/server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/server.js b/build/server.js index c90a298..0a90ca2 100644 --- a/build/server.js +++ b/build/server.js @@ -867,11 +867,11 @@ server_Main.prototype = { switch(data.type) { case "AddVideo": var item = data.addVideo.item; + item.author = client.name; var local = "" + this.localIp + ":" + this.port; if(item.url.indexOf(local) != -1) { item.url = StringTools.replace(item.url,local,"" + this.globalIp + ":" + this.port); } - item.author = client.name; if(Lambda.exists(this.videoList,function(i) { return i.url == item.url; })) { @@ -952,6 +952,7 @@ server_Main.prototype = { if((client.group & 2) == 0) { return; } + this.videoTimer.setTime(data.pause.time); this.videoTimer.pause(); this.broadcast(data); break; @@ -962,6 +963,7 @@ server_Main.prototype = { if((client.group & 2) == 0) { return; } + this.videoTimer.setTime(data.play.time); this.videoTimer.play(); this.broadcast(data); break; -- cgit v1.2.3