From a3c4b651913cf349917747dfb0eb57c539e81381 Mon Sep 17 00:00:00 2001 From: Christian Ebert Date: Fri, 14 Jul 2017 09:21:24 +0100 Subject: [PATCH] Revert "the call to checkVideoPresence was made in the first call to 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 29c0eff76aa84e1d1924c9b71cd7a8514a54e010. To ensure VOD is always played until end (#22). See: https://github.com/Dash-Industry-Forum/dash.js/issues/1901 --- src/streaming/controllers/StreamController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/streaming/controllers/StreamController.js b/src/streaming/controllers/StreamController.js index 450955b25d..9b04969c6d 100644 --- a/src/streaming/controllers/StreamController.js +++ b/src/streaming/controllers/StreamController.js @@ -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); @@ -341,8 +342,6 @@ function StreamController() { }); playbackController.seek(startTime); //seek to period start time } - }else { - videoTrackDetected = checkVideoPresence(); } activeStream.startEventController();