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