Skip to content

Commit

Permalink
TextTracks: check video size only for html rendering on 'loadedemetad…
Browse files Browse the repository at this point in the history
…ata' event (#3791)
  • Loading branch information
bbert committed Oct 19, 2021
1 parent a94af64 commit 83c9f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/text/TextTracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function TextTracks(config) {

let onMetadataLoaded = function () {
const track = getTrackByIdx(defaultIndex);
if (track) {
if (track && track.renderingType === 'html') {
checkVideoSize.call(this, track, true);
}
eventBus.off(MediaPlayerEvents.PLAYBACK_METADATA_LOADED, onMetadataLoaded, this);
Expand Down

0 comments on commit 83c9f6d

Please sign in to comment.