DescriptionConfigure MediaCodec with CDM in ADVA
Implemented SetCdm() by retrieving the CDM object from mojo
(it should be MediaDrmBridge), registering this bridge
with nesessary callbacks and postponing the MediaCodec configuration
till we get the MediaCrypto object.
After MediaCrypto object is obtained we configure MediaCodec
and only then report the SetCdm() status by NotifyCdmAttached(bool).
With this approach any failure in MediaCodec creation is reported as
a CDM failure.
BUG=542417
Committed: https://crrev.com/39cbd4546d7a6300afde7e8c1816541323a1abb5
Cr-Commit-Position: refs/heads/master@{#368679}
Patch Set 1 #Patch Set 2 : Added the handling of NO_KEY error #
Total comments: 30
Patch Set 3 : Rebased, fail if we need protected surface #Patch Set 4 : Addressed some comments #
Total comments: 6
Patch Set 5 : Passed needs_protected_surface to codec configuration, addressed comments #
Total comments: 2
Patch Set 6 : Rebase, used std::move, added VDA::Config::AsHumanReadableString #
Total comments: 8
Patch Set 7 : Made separate functions GetCodecName() and GetProfileName() and used them #Patch Set 8 : Fixed component build #Patch Set 9 : Rebased #Patch Set 10 : Rebase again #
Messages
Total messages: 40 (17 generated)
|