Fix livestream issue

This commit is contained in:
calzoneman 2014-02-20 21:24:28 -06:00
parent 644437ea42
commit 15dc61a761
2 changed files with 1 additions and 4 deletions

View File

@ -1723,9 +1723,6 @@ Channel.prototype.addMedia = function (data, callback) {
if (data.duration) {
media.seconds = data.duration;
media.live = false;
} else {
media.live = true;
}
afterLookup(lock, false, media);
});

View File

@ -388,7 +388,7 @@ Playlist.prototype.startPlayback = function (time) {
self._leadInterval = false;
}
self.on("changeMedia")(self.current.media);
if(!self.current.media.live) {
if(self.current.media.seconds > 0) {
self._lastUpdate = Date.now();
self._leadInterval = setInterval(function() {
self._leadLoop();