diff options
| author | RblSb <msrblsb@gmail.com> | 2020-02-28 19:55:32 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-02-28 19:55:32 +0300 |
| commit | ec7e4b5ad120828f1464cf4186287d4928b462a8 (patch) | |
| tree | 6ea0accbe62983f3f174df9bf9ebc89bec17977a /build/server.js | |
| parent | c5903d5670dad72c840c30a302f8238c8cff9f8a (diff) | |
Youtube player support
Diffstat (limited to 'build/server.js')
| -rw-r--r-- | build/server.js | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
