Skip to content

Commit

Permalink
fix(HLS): Add .tsa and .tsv file extensions as valid MPEG2-TS. (#…
Browse files Browse the repository at this point in the history
…5034)

Fixes #5033.
  • Loading branch information
JulianDomingo authored and joeyparrish committed Mar 1, 2023
1 parent 91ec742 commit 938e6c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3320,6 +3320,7 @@ shaka.hls.HlsParser.AUDIO_EXTENSIONS_TO_MIME_TYPES_ = {
'cmfa': 'audio/mp4',
// MPEG2-TS also uses video/ for audio: https://bit.ly/TsMse
'ts': 'video/mp2t',
'tsa': 'video/mp2t',
};


Expand All @@ -3336,6 +3337,7 @@ shaka.hls.HlsParser.VIDEO_EXTENSIONS_TO_MIME_TYPES_ = {
'm4f': 'video/mp4',
'cmfv': 'video/mp4',
'ts': 'video/mp2t',
'tsv': 'video/mp2t',
};


Expand Down

0 comments on commit 938e6c1

Please sign in to comment.