RESOLVED FIXED98090
Add LSKD support to MediaPlayerPrivateAVFoundation.
https://bugs.webkit.org/show_bug.cgi?id=98090
Summary Add LSKD support to MediaPlayerPrivateAVFoundation.
Jer Noble
Reported 2012-10-01 16:31:29 PDT
Add LSKD support to MediaPlayerPrivateAVFoundation.
Attachments
Patch (16.99 KB, patch)
2012-10-01 17:12 PDT, Jer Noble
andersca: review+
Jer Noble
Comment 1 2012-10-01 17:12:32 PDT
Anders Carlsson
Comment 2 2012-10-11 15:41:40 PDT
Comment on attachment 166576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166576&action=review > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:130 > + static dispatch_queue_t globalQueue = 0; No need to initialize the queue here. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:133 > + globalQueue = dispatch_queue_create(0, DISPATCH_QUEUE_SERIAL); I think you should give this queue a name. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:789 > + do { > + // 1. Check whether the Key System is supported with the specified container and codec type(s) by following the steps for the first matching condition from the following list: > + // If keySystem is null, continue to the next step. > + if (keySystem.isNull() || keySystem.isEmpty()) > + break; > + > + // If keySystem contains an unrecognized or unsupported Key System, return the empty string > + if (!keySystemIsSupported(keySystem)) > return MediaPlayer::IsNotSupported; > + > + // If the Key System specified by keySystem does not support decrypting the container and/or codec specified in the rest of the type string. > + // (AVFoundation does not provide an API which would allow us to determine this, so this is a no-op) > + > + } while(false); I think you should put this in a separate helper function instead of using do { } while (false). > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:992 > +static bool extractKeyURIKeyIdAndCertificateFromInitData(Uint8Array* initData, String& keyURI, String& keyId, RefPtr<Uint8Array>& certificate) ID should be all caps. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:1049 > + String keyId; keyID. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:1084 > +MediaPlayer::MediaKeyException MediaPlayerPrivateAVFoundationObjC::addKey(const String& keySystem, const unsigned char* keyPtr, unsigned keyLength, const unsigned char* initDataPtr, unsigned initDataLength, const String& sessionId) sessionID. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:1104 > +MediaPlayer::MediaKeyException MediaPlayerPrivateAVFoundationObjC::cancelKeyRequest(const String& keySystem, const String& sessionId) sessionID.
Jer Noble
Comment 3 2012-10-12 13:47:03 PDT
Note You need to log in before you can comment on or make changes to this bug.