Skip to content

Commit

Permalink
Revert "the call to checkVideoPresence was made in the first call to …
Browse files Browse the repository at this point in the history
…SwitchStream, done in composeStreams. The problem is, at this specific time, no StreamProcessor has been built. The return value of this function is always false."

This reverts commit 29c0eff.

To ensure VOD is always played until end (Dash-Industry-Forum#22).
See: Dash-Industry-Forum#1901
  • Loading branch information
phloxic committed Jul 14, 2017
1 parent a114c87 commit a3c4b65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/streaming/controllers/StreamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ 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 @@ -341,8 +342,6 @@ function StreamController() {
});
playbackController.seek(startTime); //seek to period start time
}
}else {
videoTrackDetected = checkVideoPresence();
}

activeStream.startEventController();
Expand Down

0 comments on commit a3c4b65

Please sign in to comment.