mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
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…
x
Reference in New Issue
Block a user