Update videoSyncServerScript.js
This commit is contained in:
@ -122,7 +122,8 @@
|
|||||||
videoPlaying = true;
|
videoPlaying = true;
|
||||||
ping();
|
ping();
|
||||||
var wsPlay = {
|
var wsPlay = {
|
||||||
"action": "play"
|
"action": "play",
|
||||||
|
"timeStamp": messageData.timeStamp
|
||||||
};
|
};
|
||||||
if (useGatewayServer && gatewayServerConnected) {
|
if (useGatewayServer && gatewayServerConnected) {
|
||||||
ws.send(JSON.stringify(wsPlay));
|
ws.send(JSON.stringify(wsPlay));
|
||||||
@ -131,7 +132,8 @@
|
|||||||
Script.clearInterval(timeStampInterval);
|
Script.clearInterval(timeStampInterval);
|
||||||
intervalIsRunning = false;
|
intervalIsRunning = false;
|
||||||
var wsPause = {
|
var wsPause = {
|
||||||
"action": "pause"
|
"action": "pause",
|
||||||
|
"timeStamp": messageData.timeStamp
|
||||||
};
|
};
|
||||||
if (useGatewayServer && gatewayServerConnected) {
|
if (useGatewayServer && gatewayServerConnected) {
|
||||||
ws.send(JSON.stringify(wsPause));
|
ws.send(JSON.stringify(wsPause));
|
||||||
|
Reference in New Issue
Block a user