Skip to content

Commit

Permalink
the call to checkVideoPresence was made in the first call to SwitchSt…
Browse files Browse the repository at this point in the history
…ream, done in composeStreams. The problem is, at this specific time, no StreamProcessor has been built. The return value of this function is always false.
  • Loading branch information
nicosang committed Mar 13, 2017
1 parent c5f2357 commit 29c0eff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/streaming/controllers/StreamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ function StreamController() {
if (oldStream) oldStream.deactivate();
activeStream = newStream;
playbackController.initialize(activeStream.getStreamInfo());
videoTrackDetected = checkVideoPresence();

//TODO detect if we should close and repose or jump to activateStream.
openMediaSource(seekTime);
Expand Down Expand Up @@ -343,6 +342,8 @@ function StreamController() {
});
playbackController.seek(startTime); //seek to period start time
}
}else {
videoTrackDetected = checkVideoPresence();
}

activeStream.startEventController();
Expand Down

0 comments on commit 29c0eff

Please sign in to comment.