Bug 129166 - [EME] Add a CDMSession for MediaPlayerPrivateMediaSourceAVFObjC
Summary: [EME] Add a CDMSession for MediaPlayerPrivateMediaSourceAVFObjC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 13:32 PST by Jer Noble
Modified: 2014-02-21 22:12 PST (History)
5 users (show)

See Also:


Attachments
Patch (27.90 KB, patch)
2014-02-21 13:54 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (27.81 KB, patch)
2014-02-21 16:23 PST, Jer Noble
eric.carlson: review+
Details | Formatted Diff | Diff
Patch for landing (28.02 KB, patch)
2014-02-21 20:19 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch for landing (28.06 KB, patch)
2014-02-21 21:03 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch for landing (28.12 KB, patch)
2014-02-21 21:34 PST, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2014-02-21 13:32:32 PST
[EME] Add a CDMSession for MediaPlayerPrivateMediaSourceAVFObjC
Comment 1 Jer Noble 2014-02-21 13:54:22 PST
Created attachment 224901 [details]
Patch
Comment 2 Jer Noble 2014-02-21 16:23:46 PST
Created attachment 224925 [details]
Patch

Rebaselined
Comment 3 Eric Carlson 2014-02-21 16:51:12 PST
Comment on attachment 224925 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=224925&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:67
> +    UNUSED_PARAM(errorCode);
> +    UNUSED_PARAM(systemCode);

Maybe you should set these out params to 0?

> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:110
> +    LOG(Media, "CDMSessionMediaSourceAVFObjC::update(%p) - key data", this);
> +    RetainPtr<NSData> keyData = adoptNS([[NSData alloc] initWithBytes:key->data() length:key->length()]);
> +    [m_parent->parser() processContentKeyResponseData:keyData.get() forTrackID:m_parent->protectedTrackID()];
> +    return true;

Ditto about errorCode and systemCode.
Comment 4 Jer Noble 2014-02-21 20:19:02 PST
Created attachment 224942 [details]
Patch for landing
Comment 5 Jer Noble 2014-02-21 21:03:03 PST
Created attachment 224944 [details]
Patch for landing
Comment 6 Jer Noble 2014-02-21 21:34:07 PST
Created attachment 224945 [details]
Patch for landing
Comment 7 Jer Noble 2014-02-21 22:12:57 PST
Committed r164529: <http://trac.webkit.org/changeset/164529>