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 ed1d954 commit 8829e1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/util/cmcd_manager.js
Expand Up @@ -406,12 +406,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 8829e1e

Please sign in to comment.