Support playready.* DRM types. 21/318221/2 submit/tizen/20240930.160013
authorMark Toller <mark.toller@samsung.com>
Wed, 25 Sep 2024 16:22:16 +0000 (17:22 +0100)
committerBot Blink <blinkbot@samsung.com>
Mon, 30 Sep 2024 14:32:54 +0000 (14:32 +0000)
Change-Id: I1750d6ff7c746fbfab143535e9866c0d177fa0a7

media/base/key_systems.cc

index 4981afbfd065aca3c5ab548db3b389e7b38f2741..a64c691f1ff6b0da7743c7e0bf738baf53096926 100644 (file)
@@ -247,6 +247,15 @@ static bool IsPotentiallySupportedKeySystem(const std::string& key_system) {
   if (base::EndsWith(key_system, kPlayreadyKeySystemSuffix,
                      base::CompareCase::SENSITIVE))
     return true;
+
+  // com.microsoft.playready.recommendation, com.microsoft.playready.v2,
+  // com.microsoft.playready.v3, com.youtube.playready.v2,
+  // com.youtube.playready.v3, etc...
+  std::string lower_key_system = base::ToLowerASCII(key_system);
+  if (lower_key_system.find(kPlayreadyKeySystemSuffix) != std::string::npos) {
+    LOG(INFO) << "Potentially support " << key_system;
+    return true;
+  }
 #endif
 
   // External or MediaFoundation Clear Key is known and supports suffixes for