Skip to content

Commit

Permalink
Correct key system supportability queries (#4403)
Browse files Browse the repository at this point in the history
Concatenated container mime type and codecs for mime and key system
supportability queries.

b/322021829
  • Loading branch information
jasonzhangxx authored Nov 8, 2024
1 parent 01bf374 commit 010bc0c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@ bool KeySystemConfigSelector::IsSupportedContentType(
// CDM cannot support codecs that Chrome does not (which could complicate the
// robustness algorithm).
#if BUILDFLAG(USE_STARBOARD_MEDIA)
if (SbMediaCanPlayMimeAndKeySystem(container_mime_type.c_str(),
key_system.c_str()) ==
const std::string full_mime = container_lower + "; codecs=\"" + codecs + "\"";
if (SbMediaCanPlayMimeAndKeySystem(full_mime.c_str(), key_system.c_str()) ==
kSbMediaSupportTypeNotSupported) {
LOG(INFO) << __func__ << "(" << container_lower << " and " << key_system
LOG(INFO) << __func__ << "(" << full_mime << " and " << key_system
<< ") are unsupported.";
return false;
} else {
LOG(INFO) << __func__ << "(" << container_lower << " and " << key_system
LOG(INFO) << __func__ << "(" << full_mime << " and " << key_system
<< ") are supported.";
}
#else // BUILDFLAG(USE_STARBOARD_MEDIA)
Expand Down

0 comments on commit 010bc0c

Please sign in to comment.