Skip to content

Commit 4e0c4a0

Browse files
committed
WIP hardcode num tracks to 1
1 parent b1672ba commit 4e0c4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/MediaPlayer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ function MediaPlayer() {
13461346
textTrackInfo.kind = trackKindMap.caption; // getKind();
13471347
// textTrackInfo.roles = mediaInfo.roles;
13481348
// textTrackInfo.accessibility = mediaInfo.accessibility;
1349-
const totalNrTracks = 2; // (mediaInfos ? mediaInfos.length : 0) + embeddedTracks.length;
1349+
const totalNrTracks = 1; // (mediaInfos ? mediaInfos.length : 0) + embeddedTracks.length;
13501350
textTracks.addTextTrack(textTrackInfo, totalNrTracks);
13511351
} else {
13521352
// ????

0 commit comments

Comments
 (0)