Skip to content

Commit

Permalink
fix: support tracks with id 0 for fmp4 playlists (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Dec 2, 2020
1 parent ad5c270 commit bf63692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media-segment-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const handleInitSegmentResponse =

segment.map.tracks[track.type] = track;

if (track.id && track.timescale) {
if (typeof track.id === 'number' && track.timescale) {
segment.map.timescales = segment.map.timescales || {};
segment.map.timescales[track.id] = track.timescale;
}
Expand Down

0 comments on commit bf63692

Please sign in to comment.