Changeset 220790 in webkit
- Timestamp:
- Aug 16, 2017 1:25:45 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220787 r220790 1 2017-08-16 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 3 [GStreamer][EME] Rework handling key systems and UUIDs 4 https://bugs.webkit.org/show_bug.cgi?id=175567 5 6 Reviewed by Žan Doberšek. 7 8 The UUIDs and key system strings were moved to the 9 GStreamerEMEUtilities class because so far they were managed by 10 the decryptors and that was ugly. 11 12 * platform/GStreamer.cmake: 13 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: 14 (WebCore::MediaPlayerPrivateGStreamerBase::supportsKeySystem): 15 * platform/graphics/gstreamer/eme/GStreamerEMEUtilities.cpp: Added. 16 * platform/graphics/gstreamer/eme/GStreamerEMEUtilities.h: Added. 17 (WebCore::GStreamerEMEUtilities::isClearKeyKeySystem): 18 (WebCore::GStreamerEMEUtilities::keySystemToUuid): 19 * platform/graphics/gstreamer/eme/WebKitClearKeyDecryptorGStreamer.cpp: 20 (webkit_media_clear_key_decrypt_class_init): 21 * platform/graphics/gstreamer/eme/WebKitClearKeyDecryptorGStreamer.h: 22 1 23 2017-08-16 Andy Estes <aestes@apple.com> 2 24 -
trunk/Source/WebCore/platform/GStreamer.cmake
r220264 r220790 43 43 platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp 44 44 45 platform/graphics/gstreamer/eme/GStreamerEMEUtilities.cpp 45 46 platform/graphics/gstreamer/eme/WebKitClearKeyDecryptorGStreamer.cpp 46 47 platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
r220519 r220790 112 112 113 113 #if ENABLE(ENCRYPTED_MEDIA) 114 #include "GStreamerEMEUtilities.h" 114 115 #include "SharedBuffer.h" 115 116 #include "WebKitClearKeyDecryptorGStreamer.h" … … 1049 1050 1050 1051 #if ENABLE(ENCRYPTED_MEDIA) 1051 if (equalLettersIgnoringASCIICase(keySystem, "org.w3.clearkey")) 1052 result = true; 1052 result = GStreamerEMEUtilities::isClearKeyKeySystem(keySystem); 1053 1053 #endif 1054 1054 -
trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitClearKeyDecryptorGStreamer.cpp
r219980 r220790 26 26 27 27 #include "GRefPtrGStreamer.h" 28 #include "GStreamerEMEUtilities.h" 28 29 #include <gcrypt.h> 29 30 #include <gst/base/gstbytereader.h> … … 55 56 GST_PAD_SINK, 56 57 GST_PAD_ALWAYS, 57 GST_STATIC_CAPS("application/x-cenc, original-media-type=(string)video/x-h264, protection-system=(string)" CLEAR_KEY_PROTECTION_SYSTEM_UUID "; "58 "application/x-cenc, original-media-type=(string)audio/mpeg, protection-system=(string)" CLEAR_KEY_PROTECTION_SYSTEM_UUID));58 GST_STATIC_CAPS("application/x-cenc, original-media-type=(string)video/x-h264, protection-system=(string)" WEBCORE_GSTREAMER_EME_UTILITIES_CLEARKEY_UUID "; " 59 "application/x-cenc, original-media-type=(string)audio/mpeg, protection-system=(string)" WEBCORE_GSTREAMER_EME_UTILITIES_CLEARKEY_UUID)); 59 60 60 61 static GstStaticPadTemplate srcTemplate = GST_STATIC_PAD_TEMPLATE("src", … … 85 86 86 87 WebKitMediaCommonEncryptionDecryptClass* cencClass = WEBKIT_MEDIA_CENC_DECRYPT_CLASS(klass); 87 cencClass->protectionSystemId = CLEAR_KEY_PROTECTION_SYSTEM_UUID;88 cencClass->protectionSystemId = WebCore::GStreamerEMEUtilities::s_ClearKeyUUID; 88 89 cencClass->handleKeyResponse = GST_DEBUG_FUNCPTR(webKitMediaClearKeyDecryptorHandleKeyResponse); 89 90 cencClass->setupCipher = GST_DEBUG_FUNCPTR(webKitMediaClearKeyDecryptorSetupCipher); -
trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitClearKeyDecryptorGStreamer.h
r217966 r220790 25 25 26 26 #include "WebKitCommonEncryptionDecryptorGStreamer.h" 27 28 #define CLEAR_KEY_PROTECTION_SYSTEM_UUID "58147ec8-0423-4659-92e6-f52c5ce8c3cc"29 #define CLEAR_KEY_PROTECTION_SYSTEM_ID "org.w3.clearkey"30 27 31 28 G_BEGIN_DECLS
Note: See TracChangeset
for help on using the changeset viewer.