Skip to content

Commit 3c07961

Browse files
bbertvodlogic
authored andcommitted
TextTracks: check video size only for html rendering on 'loadedemetadata' event (Dash-Industry-Forum#3791)
1 parent b1744e2 commit 3c07961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/text/TextTracks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function TextTracks(config) {
160160

161161
let onMetadataLoaded = function () {
162162
const track = getTrackByIdx(defaultIndex);
163-
if (track) {
163+
if (track && track.renderingType === 'html') {
164164
checkVideoSize.call(this, track, true);
165165
}
166166
eventBus.off(MediaPlayerEvents.PLAYBACK_METADATA_LOADED, onMetadataLoaded, this);

0 commit comments

Comments
 (0)