Title: [219945] trunk/Source/WebCore
Revision
219945
Author
[email protected]
Date
2017-07-26 07:31:13 -0700 (Wed, 26 Jul 2017)

Log Message

[EME][GStreamer] Handle ClearKey as a supported key system
https://bugs.webkit.org/show_bug.cgi?id=174778

Reviewed by Xabier Rodriguez-Calvar.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::supportsKeySystem):
Return true for the 'org.w3.clearkey' key system when building with
ENCRYPTED_MEDIA enabled. The underlying implementation will follow.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (219944 => 219945)


--- trunk/Source/WebCore/ChangeLog	2017-07-26 14:23:21 UTC (rev 219944)
+++ trunk/Source/WebCore/ChangeLog	2017-07-26 14:31:13 UTC (rev 219945)
@@ -1,3 +1,15 @@
+2017-07-26  Zan Dobersek  <[email protected]>
+
+        [EME][GStreamer] Handle ClearKey as a supported key system
+        https://bugs.webkit.org/show_bug.cgi?id=174778
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerBase::supportsKeySystem):
+        Return true for the 'org.w3.clearkey' key system when building with
+        ENCRYPTED_MEDIA enabled. The underlying implementation will follow.
+
 2017-07-26  Claudio Saavedra  <[email protected]>
 
         [WPE] Fix a potential crash in the platform pasteboard when reading a string

Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp (219944 => 219945)


--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2017-07-26 14:23:21 UTC (rev 219944)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2017-07-26 14:31:13 UTC (rev 219945)
@@ -1034,6 +1034,12 @@
 bool MediaPlayerPrivateGStreamerBase::supportsKeySystem(const String& keySystem, const String& mimeType)
 {
     GST_INFO("Checking for KeySystem support with %s and type %s: false.", keySystem.utf8().data(), mimeType.utf8().data());
+
+#if ENABLE(ENCRYPTED_MEDIA)
+    if (equalLettersIgnoringASCIICase(keySystem, "org.w3.clearkey"))
+        return true;
+#endif
+
     return false;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to