Skip to content

Commit

Permalink
fix(CMCD): Fix CMCD for some mimetypes in src= (#5699)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Oct 4, 2023
1 parent b639b55 commit 28bb5d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/util/cmcd_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,17 @@ shaka.util.CmcdManager = class {
* @private
*/
getObjectTypeFromMimeType_(mimeType) {
switch (mimeType) {
switch (mimeType.toLowerCase()) {
case 'video/webm':
case 'video/mp4':
case 'video/mpeg':
case 'video/mp2t':
return shaka.util.CmcdManager.ObjectType.MUXED;

case 'application/x-mpegurl':
case 'application/vnd.apple.mpegurl':
case 'application/dash+xml':
case 'video/vnd.mpeg.dash.mpd':
return shaka.util.CmcdManager.ObjectType.MANIFEST;

default:
Expand Down

0 comments on commit 28bb5d1

Please sign in to comment.