OSDN Git Service

Add a method to associate MediaDrm session with MediaCrypto
authorJeff Tinker <jtinker@google.com>
Fri, 10 Apr 2015 11:10:10 +0000 (04:10 -0700)
committerJeff Tinker <jtinker@google.com>
Fri, 10 Apr 2015 11:10:10 +0000 (04:10 -0700)
commitac7d8fe36f6bb825b0a4031ee521caf95df39f2a
treecdaa7b75ed925d83315b8a17a0baf1d38032e3f3
parent9a498ef11566a5ae82c24b0651c58280309dfd04
Add a method to associate MediaDrm session with MediaCrypto

Previously, to associate a MediaDrm session with MediaCrypto,
the MediaDrm sessionId was passed as initData to the MediaCrypto
constructor.  This is not ideal for two reasons: it's pretty
obscure and you can't change the association without tearing
down the MediaCodec/MediaCrypto and starting all over.  Use
cases like key rotation require being able to update the
MediaDrm session post-construction.  This CL addresses both of
these issues.

bug: 19570317
Change-Id: Iede35e73e9007df13254edaa5877cb4832b28646
include/media/hardware/CryptoAPI.h