We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21cb800 commit 6472bbeCopy full SHA for 6472bbe
src/streaming/controllers/StreamController.js
@@ -546,8 +546,8 @@ function StreamController() {
546
});
547
}
548
549
- function setMediaDuration() {
550
- const manifestDuration = activeStream.getStreamInfo().manifestInfo.duration;
+ function setMediaDuration(duration) {
+ const manifestDuration = duration ? duration : activeStream.getStreamInfo().manifestInfo.duration;
551
const mediaDuration = mediaSourceController.setDuration(mediaSource, manifestDuration);
552
logger.debug('Duration successfully set to: ' + mediaDuration);
553
0 commit comments