Skip to content

Commit

Permalink
add log message when PLAYBACK_ENDED is triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosang committed Nov 13, 2017
1 parent 71f496d commit dd39758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/streaming/controllers/StreamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ function StreamController() {
} else if (MediaSource) {
//send PLAYBACK_ENDED in order switch to a new period, wait until the end of playing
const timeToEnd = playbackController.getTimeToStreamEnd();
log('[StreamController] onStreamBufferingCompleted PLAYBACK_ENDED event will be triggered in ' + timeToEnd + ' seconds');
setTimeout(function () {eventBus.trigger(Events.PLAYBACK_ENDED);}, timeToEnd > 0 ? timeToEnd * 1000 : 0);
}
}
Expand Down

0 comments on commit dd39758

Please sign in to comment.