diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 24428d00..60a05f9c 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -740,9 +740,13 @@ PlaylistModule.prototype.handleAssignLeader = function (user, data) { this.channel.logger.log("[playlist] Resuming autolead"); if (this.current !== null) { + // Ensure the video is unpaused before resuming autolead. + // In the past, people have reported stuck playlists because + // they assigned leader, paused, then removed leader. this.current.media.paused = false; + this.sendMediaUpdate(this.channel.users); - if (!this._leadInterval) { + if (!this._leadInterval && this.current.media.seconds > 0) { this._lastUpdate = Date.now(); this._leadInterval = setInterval(this._leadLoop.bind(this), 1000); this._leadLoop();