Skip to content

Commit

Permalink
fix(hls): Recognize the types of mp4a and mp4v extensions
Browse files Browse the repository at this point in the history
The HLS content linked in shaka-project#2907 uses the .mp4a extension for audio
segments, so it is helpful for us to be able to recognize the types of
these segments.  This adds both .mp4a and .mp4v to the extension maps
in the HLS parser.

Change-Id: I8f2e126691e552c34ff5da027fca32ed925a2bdf
  • Loading branch information
joeyparrish committed Oct 14, 2020
1 parent f7626ff commit ad009b6
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 @@ -2727,6 +2727,7 @@ shaka.hls.HlsParser.CODEC_REGEXPS_BY_CONTENT_TYPE_ = {
*/
shaka.hls.HlsParser.AUDIO_EXTENSIONS_TO_MIME_TYPES_ = {
'mp4': 'audio/mp4',
'mp4a': 'audio/mp4',
'm4s': 'audio/mp4',
'm4i': 'audio/mp4',
'm4a': 'audio/mp4',
Expand Down Expand Up @@ -2763,6 +2764,7 @@ shaka.hls.HlsParser.RAW_FORMATS_ = [
*/
shaka.hls.HlsParser.VIDEO_EXTENSIONS_TO_MIME_TYPES_ = {
'mp4': 'video/mp4',
'mp4v': 'video/mp4',
'm4s': 'video/mp4',
'm4i': 'video/mp4',
'm4v': 'video/mp4',
Expand Down

0 comments on commit ad009b6

Please sign in to comment.