diff --git a/src/streaming/text/TextTracks.js b/src/streaming/text/TextTracks.js index a7a3ffa0be..01c2b57e24 100644 --- a/src/streaming/text/TextTracks.js +++ b/src/streaming/text/TextTracks.js @@ -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);