mirror of https://github.com/calzoneman/sync.git
Fix livestream issue
This commit is contained in:
parent
644437ea42
commit
15dc61a761
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue