summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/Crypto.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libmediaplayerservice: fix warnings, make warnings errors, use clangLajos Molnar2015-04-171-1/+1
| | | | Change-Id: I1b2f6b65c5abbc366068a60b8909104f31b94228
* Add a method to associate MediaDrm session with MediaCryptoJeff Tinker2015-04-101-0/+10
| | | | | | | | | | | | | | 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: Ieb32d04d61742fc1dee2105dd904690d44c46c7b
* Pass crypto source data using a shared bufferJeff Tinker2015-04-081-1/+4
| | | | | | | | | | | | | MediaCodec was using a binder transaction buffer to pass encryption source data for protected content. On some 4K content, the max binder transaction buffer size was being exceeded. This change uses a shared buffer for the encryption source data instead of a binder transaction buffer, which avoids the problem and may be more efficient. bug: 20027687 Change-Id: I36a24ebf600d7e1064b78e48b167fdc29b2c65e9
* Pass resolution to Crypto plugin on format changeJeff Tinker2014-11-031-0/+8
| | | | | Change-Id: I56cd557ce3525fe625db8c312d2557d3c8b51101 related-to-bug: 16034599
* Output more detailed error message if loading library failsleozwang@google.com2013-07-171-1/+2
| | | | | | Bug: 9805979 Change-Id: I77b19d6a65ff9fb72e7428ce79b117628e4c8658
* Load crypto plugins from additional shared librariesJeff Tinker2013-03-221-35/+126
| | | | | | | | | | | | | | Currently crypto plugins are expected to be in libdrmdecrypt.so. When there are multiple plugins supporting different schemes, this approach requires source code integration across vendors which is unmanagable. Also, for integration with MediaDrm where the crypto keys are obtained from a drm server, the MediaCrypto plugin needs to interoperate with the MediaDrm plugin. This change allows {MediaCrypto, MediaDrm} pairs that are logically related to be implemented in a common shared library. Change-Id: I7f6638f29171f91609fc2d944396365568630b56
* Fixed sample video corrupted in MediaCodec mode.Edwin Wong2012-07-131-1/+1
| | | | | Change-Id: I50c5660072d40f6e297e58fd026ea04c89d6a70a related-to-bug: 6732061
* Allow propagation of error information and description from the CryptoPlugin toAndreas Huber2012-04-191-2/+5
| | | | | | | the higher layers. Change-Id: I9f434ad55cdf575803c208bedf47b607baff2330 related-to-bug: 6365261
* Support widevine:// URLs in NuMediaExtractor / java MediaExtractor.Andreas Huber2012-04-171-0/+9
| | | | | | | Allow anyone to talk to drm services. Change-Id: I5c2f3c419d01de30c3d6e2bc85b1fe5c9c37b392 related-to-bug: 6276111
* New Crypto services talking to the new crypto "HAL".Andreas Huber2012-04-031-21/+112
| | | | | Change-Id: I69ed31e7a8b4d69d1209d2d516f94d258f072566 related-to-bug: 6275919
* Provisional support for secure decryption of media streams.Andreas Huber2012-03-261-0/+65
Change-Id: Ib3982a9c960bfdb0cb7e1b174440b141b194cfbe