Send onMediaChange (fixes voteskip stuff)

This commit is contained in:
Calvin Montgomery 2014-07-11 21:09:28 -07:00
parent b28fd9e4a8
commit b6a1dd8cb3
1 changed files with 2 additions and 0 deletions

View File

@ -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) {