mirror of https://github.com/calzoneman/sync.git
Send onMediaChange (fixes voteskip stuff)
This commit is contained in:
parent
b28fd9e4a8
commit
b6a1dd8cb3
|
@ -988,6 +988,7 @@ PlaylistModule.prototype.startPlayback = function (time) {
|
|||
* users are sent a changeMedia
|
||||
*/
|
||||
self.sendChangeMedia(self.channel.users);
|
||||
self.channel.notifyModules("onMediaChange", [self.current.media]);
|
||||
}
|
||||
);
|
||||
return;
|
||||
|
@ -1012,6 +1013,7 @@ PlaylistModule.prototype.startPlayback = function (time) {
|
|||
* users are sent a changeMedia
|
||||
*/
|
||||
self.sendChangeMedia(self.channel.users);
|
||||
self.channel.notifyModules("onMediaChange", [self.current.media]);
|
||||
|
||||
/* Only start the timer if the media item is not live, i.e. has a duration */
|
||||
if (media.seconds > 0) {
|
||||
|
|
Loading…
Reference in New Issue