Skip to content

Commit

Permalink
Changed default from mp4 to ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
theodab committed Mar 31, 2022
1 parent 61c0e50 commit 341e161
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion externs/shaka/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ shaka.extern.DashManifestConfiguration;
* You can use the <code>shaka.util.MimeUtils.getFullType()</code> utility to
* format this value.
* <i>Defaults to
* <code>'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'</code>.</i>
* <code>'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'</code>.</i>
* @exportDoc
*/
shaka.extern.HlsManifestConfiguration;
Expand Down
3 changes: 2 additions & 1 deletion lib/util/player_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ shaka.util.PlayerConfiguration = class {
defaultAudioCodec: 'mp4a.40.2',
defaultVideoCodec: 'avc1.42E01E',
ignoreManifestProgramDateTime: false,
mediaPlaylistFullMimeType: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
mediaPlaylistFullMimeType:
'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',
},
};

Expand Down
2 changes: 1 addition & 1 deletion test/hls/hls_parser_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3370,7 +3370,7 @@ describe('HlsParser', () => {
manifest.anyTimeline();
manifest.addPartialVariant((variant) => {
variant.addPartialStream(ContentType.VIDEO, (stream) => {
stream.mime('video/mp4', 'avc1.42E01E');
stream.mime('video/mp2t', 'avc1.42E01E, mp4a.40.2');
});
});
});
Expand Down

0 comments on commit 341e161

Please sign in to comment.