mirror of https://github.com/calzoneman/sync.git
Fix voteskips
This commit is contained in:
parent
ee1b6c3255
commit
6a9c9f9235
|
@ -977,6 +977,11 @@ Channel.prototype.broadcastDrinks = function() {
|
|||
|
||||
/* REGION Playlist Stuff */
|
||||
|
||||
Channel.prototype.onVideoChange = function () {
|
||||
this.voteskip = false;
|
||||
this.broadcastVoteskipUpdate();
|
||||
}
|
||||
|
||||
// The server autolead function
|
||||
function mediaUpdate(chan, id) {
|
||||
// Bail cases - video changed, someone's leader, no video playing
|
||||
|
|
|
@ -42,6 +42,7 @@ function Playlist(chan) {
|
|||
chan.sendAll("mediaUpdate", m.timeupdate());
|
||||
});
|
||||
this.on("changeMedia", function(m) {
|
||||
chan.onVideoChange();
|
||||
chan.sendAll("setCurrent", pl.current.uid);
|
||||
chan.sendAll("changeMedia", m.fullupdate());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue