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 f37d344 commit a080996
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 @@ -2990,6 +2990,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',

// Raw formats:
'aac': 'audio/aac',
Expand Down Expand Up @@ -3027,6 +3028,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 a080996

Please sign in to comment.