Skip to content

Commit

Permalink
WIP hardcode num tracks to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieconnelly committed Mar 15, 2021
1 parent b1672ba commit 4e0c4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/MediaPlayer.js
Expand Up @@ -1346,7 +1346,7 @@ function MediaPlayer() {
textTrackInfo.kind = trackKindMap.caption; // getKind();
// textTrackInfo.roles = mediaInfo.roles;
// textTrackInfo.accessibility = mediaInfo.accessibility;
const totalNrTracks = 2; // (mediaInfos ? mediaInfos.length : 0) + embeddedTracks.length;
const totalNrTracks = 1; // (mediaInfos ? mediaInfos.length : 0) + embeddedTracks.length;
textTracks.addTextTrack(textTrackInfo, totalNrTracks);
} else {
// ????
Expand Down

0 comments on commit 4e0c4a0

Please sign in to comment.