Dailymotion support

This commit is contained in:
calzoneman 2013-03-23 13:17:39 -05:00
parent bf72733086
commit c0fc363f1b
6 changed files with 116 additions and 6 deletions

View file

@ -199,6 +199,8 @@ function initCallbacks() {
updateSC(data);
else if(data.type == "vi")
updateVI(data);
else if(data.type == "dm")
updateDM(data);
});
socket.on('userlist', function(data) {
@ -245,6 +247,14 @@ function initCallbacks() {
});
});
}
else if(MEDIATYPE == "dm") {
socket.emit('mediaUpdate', {
id: PLAYER.mediaId,
seconds: PLAYER.currentTime,
paused: PLAYER.paused,
type: "dm"
});
}
};
}
// I'm not a leader. Don't send syncs to the server