Skip to content

Commit

Permalink
when audio level loaded, check if we already know that it's live
Browse files Browse the repository at this point in the history
(cherry picked from commit 24309ed)
  • Loading branch information
drewbharris authored and Rob Walch committed Oct 19, 2020
1 parent 1b51411 commit caa633f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/audio-stream-controller.js
Expand Up @@ -417,13 +417,13 @@ class AudioStreamController extends BaseStreamController {
let newDetails = data.details,
trackId = data.id,
track = this.tracks[trackId],
curDetails = track.details,
duration = newDetails.totalduration,
sliding = 0;

logger.log(`track ${trackId} loaded [${newDetails.startSN},${newDetails.endSN}],duration:${duration}`);

if (newDetails.live) {
let curDetails = track.details;
if (newDetails.live || (curDetails && curDetails.live)) {
if (curDetails && newDetails.fragments.length > 0) {
// we already have details for that level, merge them
LevelHelper.mergeDetails(curDetails, newDetails);
Expand Down

0 comments on commit caa633f

Please sign in to comment.