Skip to content

Commit

Permalink
Fix a bug which causes no calculation of live seek range in the MSE f…
Browse files Browse the repository at this point in the history
…or video only streams (#3277)
  • Loading branch information
dsilhavy committed Jun 4, 2020
1 parent 9327b8b commit 54244b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/streaming/controllers/StreamController.js
Expand Up @@ -971,7 +971,8 @@ function StreamController() {
if (e.metric === MetricsConstants.DVR_INFO) {
//Match media type? How can DVR window be different for media types?
//Should we normalize and union the two?
if (e.mediaType === Constants.AUDIO) {
const targetMediaType = hasAudioTrack() ? Constants.AUDIO : Constants.VIDEO;
if (e.mediaType === targetMediaType) {
mediaSourceController.setSeekable(mediaSource, e.value.range.start, e.value.range.end);
}
}
Expand Down

0 comments on commit 54244b6

Please sign in to comment.