Skip to content
Permalink
Browse files

Keep metadata tracks active

JW8-10898
  • Loading branch information
robwalch committed Feb 14, 2020
1 parent b209997 commit 14edb8da62089355a22dba9606b9e250040b42e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/js/providers/html5.js
@@ -334,6 +334,7 @@ function VideoProvider(_playerId, _playerConfig, mediaElement) {
if ((!_videotag.videoWidth && !isAudioStream()) || _currentQuality === -1) {
return;
}
_this.ensureMetaTracksActive();
level.width = _videotag.videoWidth;
level.height = _videotag.videoHeight;
_setMediaType();
@@ -399,6 +400,7 @@ function VideoProvider(_playerId, _playerConfig, mediaElement) {
const rangeUpdated = !dvrPosition || Math.abs(dvrEnd - seekRange.end) > 1;
if (rangeUpdated) {
updateDvrPosition(seekRange);
_this.ensureMetaTracksActive();
}
if (isDvr(seekRange.end - seekRange.start, minDvrWindow)) {
return dvrPosition;
@@ -411,7 +413,6 @@ function VideoProvider(_playerId, _playerConfig, mediaElement) {
dvrEnd = seekRange.end;
dvrPosition = Math.min(0, _videotag.currentTime - dvrEnd);
dvrUpdatedTime = now();
_this.ensureMetaTracksActive();
}

_this.getDuration = function() {

0 comments on commit 14edb8d

Please sign in to comment.
You can’t perform that action at this time.