mirror of https://github.com/calzoneman/sync.git
Merge branch 'master' of github.com:calzoneman/sync
This commit is contained in:
commit
dbad8cac2f
|
@ -640,16 +640,7 @@ Callbacks = {
|
|||
// I'm a leader! Set up sync function
|
||||
if(LEADTMR)
|
||||
clearInterval(LEADTMR);
|
||||
LEADTMR = setInterval(function() {
|
||||
PLAYER.getTime(function(seconds) {
|
||||
socket.emit("mediaUpdate", {
|
||||
id: PLAYER.id,
|
||||
currentTime: seconds,
|
||||
paused: PLAYER.paused,
|
||||
type: PLAYER.type
|
||||
});
|
||||
});
|
||||
}, 5000);
|
||||
LEADTMR = setInterval(sendVideoUpdate, 5000);
|
||||
}
|
||||
// I'm not a leader. Don't send syncs to the server
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue