Commit Graph

580 Commits

Author SHA1 Message Date
Gene Morgan
4e3efb415b Keep local file open for DrmManagerService::acquireDrmInfo().
Bug: 7208979
Change-Id: I1b7798929f55b956e43bb9ed1a0f41dec9342be4
2012-09-21 17:50:10 -07:00
Fred Gylys-Colwell
77da47c4cd am 845e53e6: Update Widevine Libraries Version 4.5.0.10082
* commit '845e53e68420439c1c5bbb66e80f4febaecb8915':
  Update Widevine Libraries Version 4.5.0.10082
2012-09-21 13:34:02 -07:00
Gene Morgan
ab8c97b194 am 8cd5d091: Allow DRM client to pass the FD of an open file to the DRM server.
* commit '8cd5d09119cd789846f9ddedfdc31439109d5c1c':
  Allow DRM client to pass the FD of an open file to the DRM server.
2012-09-21 13:34:02 -07:00
The Android Automerger
0afc221250 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-21 07:01:58 -07:00
Fred Gylys-Colwell
f329eaff4d am 845e53e6: Update Widevine Libraries Version 4.5.0.10082
* commit '845e53e68420439c1c5bbb66e80f4febaecb8915':
  Update Widevine Libraries Version 4.5.0.10082
2012-09-20 20:31:08 -07:00
Gene Morgan
08c9cc199e am 8cd5d091: Allow DRM client to pass the FD of an open file to the DRM server.
* commit '8cd5d09119cd789846f9ddedfdc31439109d5c1c':
  Allow DRM client to pass the FD of an open file to the DRM server.
2012-09-20 20:31:07 -07:00
Fred Gylys-Colwell
845e53e684 Update Widevine Libraries Version 4.5.0.10082
This change updates the Widevine binary libraries.

It includes
https://widevine-internal-review.googlesource.com/1330
Add an argument to AcquireDrmInfo() for passing in the FD of an open file.

IMPORTANT: This change should be merge at the same time as these two:

https://googleplex-android-review.googlesource.com/226382
https://googleplex-android-review.googlesource.com/222797

bug: 7092908
bug: 6769768

Change-Id: I6931f9e4783234348ab384275fdc2ba374f6b591
2012-09-20 11:54:02 -07:00
Gene Morgan
8cd5d09119 Allow DRM client to pass the FD of an open file to the DRM server.
This allows a DRM client to open a locally-cached file on behalf of the
DRM server so the DRM server no longer requires the sdcard_r permission
to access the file's metadata.  Specifically, this adds an optional
attribute FileDescriptorKey to the DrmInfoRequest.

This change is dependent on this Widevine CL:
https://widevine-internal-review.googlesource.com/#/c/1330/

Relevant bug reports:
bug: 6426185

Change-Id: Ia7bcb2455c7a55fa4c7c7061de4d672957c7ac0a
2012-09-20 11:42:09 -07:00
The Android Automerger
c09344ebe3 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-19 07:02:51 -07:00
John "Juce" Bruce
69d2a7c651 am b092b158: Merge "When Running in MediaCodec Mode, Widevine Freezes If You Rewind" into jb-mr1-dev
* commit 'b092b158d2cb5be6428694e5581d19472b2ec244':
  When Running in MediaCodec Mode, Widevine Freezes If You Rewind
2012-09-18 14:49:16 -07:00
John "Juce" Bruce
92a7778b0a am b092b158: Merge "When Running in MediaCodec Mode, Widevine Freezes If You Rewind" into jb-mr1-dev
* commit 'b092b158d2cb5be6428694e5581d19472b2ec244':
  When Running in MediaCodec Mode, Widevine Freezes If You Rewind
2012-09-18 14:45:29 -07:00
John "Juce" Bruce
b092b158d2 Merge "When Running in MediaCodec Mode, Widevine Freezes If You Rewind" into jb-mr1-dev 2012-09-18 14:37:52 -07:00
Jeff Tinker
b2fa5c4552 am 86cddd37: Merge "[WVDRM] Allow adaptive logging of more than 10 tracks" into jb-mr1-dev
* commit '86cddd376b403b7b3de13af4850f7398812e5561':
  [WVDRM] Allow adaptive logging of more than 10 tracks
2012-09-18 12:27:35 -07:00
Jeff Tinker
5c4feda5fa am 86cddd37: Merge "[WVDRM] Allow adaptive logging of more than 10 tracks" into jb-mr1-dev
* commit '86cddd376b403b7b3de13af4850f7398812e5561':
  [WVDRM] Allow adaptive logging of more than 10 tracks
2012-09-18 12:16:36 -07:00
Jeff Tinker
86cddd376b Merge "[WVDRM] Allow adaptive logging of more than 10 tracks" into jb-mr1-dev 2012-09-18 11:23:58 -07:00
John "Juce" Bruce
2e0e32f9f7 When Running in MediaCodec Mode, Widevine Freezes If You Rewind
There was a subtle interaction between Widevine's libraries and MediaCodec
mode.  Widevine's code assumed (erroneously) that video seeks would always
happen before audio seeks, and because we can't seek audio and video
independently from each other, we would ignore audio seeks but respect video
seeks.  This led to a problem since MediaCodec mode calls seeks in arbitrary
order.

Fix is to always respect the first request we get to seek and ignore the
second.

Bug: 6793514
Change-Id: Ic9ec60e0e0f606c7a0de6283dd4c30318eebdbad
2012-09-17 15:54:42 -07:00
Jeff Tinker
33b24fba9d [WVDRM] Allow adaptive logging of more than 10 tracks
Change-Id: I9d2f8efcc658532dc2a0b1d69b8551444120f664
related-to-bug: 7173307
2012-09-17 15:08:42 -07:00
Fred Gylys-Colwell
6bddcff940 am 38e5d591: Merge "Add InfoListener to Widevine Test Application" into jb-mr1-dev
* commit '38e5d5912cb4b654577f63970b9bfbd49f22e83e':
  Add InfoListener to Widevine Test Application
2012-09-17 11:09:58 -07:00
James Dong
831ab1f6a5 am be20f248: Revert "Update Widevine Libraries to Version 4.5.0.10079"
* commit 'be20f24819ce816fa9176d06935e8113562910f6':
  Revert "Update Widevine Libraries to Version 4.5.0.10079"
2012-09-17 10:27:57 -07:00
The Android Automerger
ce01a4bb65 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-14 14:11:27 -07:00
Fred Gylys-Colwell
e3655bb021 am 38e5d591: Merge "Add InfoListener to Widevine Test Application" into jb-mr1-dev
* commit '38e5d5912cb4b654577f63970b9bfbd49f22e83e':
  Add InfoListener to Widevine Test Application
2012-09-14 12:57:24 -07:00
Fred Gylys-Colwell
38e5d5912c Merge "Add InfoListener to Widevine Test Application" into jb-mr1-dev 2012-09-14 12:54:36 -07:00
James Dong
151c96fe6d Revert "Update Widevine Libraries to Version 4.5.0.10079"
This reverts commit 8bbea70f79.

o related-to-bug: 7132419
2012-09-14 09:44:05 -07:00
James Dong
06293eb191 am be20f248: Revert "Update Widevine Libraries to Version 4.5.0.10079"
* commit 'be20f24819ce816fa9176d06935e8113562910f6':
  Revert "Update Widevine Libraries to Version 4.5.0.10079"
2012-09-14 09:26:22 -07:00
James Dong
be20f24819 Revert "Update Widevine Libraries to Version 4.5.0.10079"
This reverts commit 8bbea70f79.

o related-to-bug: 7132419
2012-09-14 00:04:20 -07:00
Fred Gylys-Colwell
da4abe2680 Add InfoListener to Widevine Test Application
In order to test the MediaPlayer info events, an OnInfoListener was added to
the VideoPlayerView class.  It is set to listen to events coming from the
videoView.  This allows testers to verify that events are occuring.

Note: This change was made by Alexander Oliphant who does not have write
permission to commit to the Android tree.

Change-Id: Ia2faa927b4fe2850e15644bd332e50601a424c4a
2012-09-13 16:40:34 -07:00
Edwin Wong
dcbf6e38fd am d72b67cd: Add getError and setError to propagate error code from WVMMediaExtractor up to player.
* commit 'd72b67cdeb4f0293769fa8faeb9d5f7fc976f087':
  Add getError and setError to propagate error code from WVMMediaExtractor up to player.
2012-09-12 15:35:25 -07:00
The Android Automerger
d1edb8e0f5 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-12 07:01:18 -07:00
Edwin Wong
7755340394 am d72b67cd: Add getError and setError to propagate error code from WVMMediaExtractor up to player.
* commit 'd72b67cdeb4f0293769fa8faeb9d5f7fc976f087':
  Add getError and setError to propagate error code from WVMMediaExtractor up to player.
2012-09-11 17:55:13 -07:00
Edwin Wong
d72b67cdeb Add getError and setError to propagate error code from WVMMediaExtractor up to player.
Error code from the plugin is not propagated from WVMExtractorImpl.cpp to the MediaPlayer.
The two APIs addresses this issue and provide a path for the player to retrieve the last error.

Change-Id: I60040eaf2d396379eecca46bfe333c44a39c35ec
related-to-bug: 7073630
2012-09-11 17:38:57 -07:00
The Android Automerger
e1e8eaaad4 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-09 07:03:08 -07:00
Fred Gylys-Colwell
bb467a81ac am d3c2b6f0: (-s ours) am 2740be7d: (-s ours) am 4bdfcc99: Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
* commit 'd3c2b6f098c2274597a245b69b6f3da92e447b67':
  Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
2012-09-07 13:46:11 -07:00
Fred Gylys-Colwell
b91dc87862 am d3c2b6f0: (-s ours) am 2740be7d: (-s ours) am 4bdfcc99: Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
* commit 'd3c2b6f098c2274597a245b69b6f3da92e447b67':
  Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
2012-09-06 21:59:21 -07:00
Fred Gylys-Colwell
d3c2b6f098 am 2740be7d: (-s ours) am 4bdfcc99: Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
* commit '2740be7d97473c67ee03e1c350bc69f103cbfac2':
  Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
2012-09-06 21:56:00 -07:00
Fred Gylys-Colwell
2740be7d97 am 4bdfcc99: Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
* commit '4bdfcc990b098264d78b56339c722df0b1e68643':
  Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
2012-09-06 21:54:58 -07:00
Fred Gylys-Colwell
e9d53c003e am 8bbea70f: Update Widevine Libraries to Version 4.5.0.10079
* commit '8bbea70f797e40656feafb64e38139d2fdb588a6':
  Update Widevine Libraries to Version 4.5.0.10079
2012-09-06 19:32:51 -07:00
Fred Gylys-Colwell
8bbea70f79 Update Widevine Libraries to Version 4.5.0.10079
Widevine Library for Level 1 and 3: Version 4.5.0.10079 AES 601_AndroidOS_J

This library has the following changes:

https://widevine-internal-review.googlesource.com/1320
Fix multicore synchronization issue in Pump.cpp

https://widevine-internal-review.googlesource.com/1343
Call OEMCrypto_Terminate in DRM Plugin After Setup. (JB MR1)

related-to-bug: 7078790
related-to-bug: 7092908
related-to-bug: 6769768
Change-Id: I4a03b60a1f030d710a2b2dd7f2a1ac3746ec846b
2012-09-06 19:25:05 -07:00
Fred Gylys-Colwell
4bdfcc990b Update Widevine Libraries to Version 4.5.0.10059 AES 601_AndroidOS_J_MR0 (DO NOT MERGE)
This library has the following changes:

https://widevine-internal-review.googlesource.com/1317
Update Jamfiles for new Build Environment

https://widevine-internal-review.googlesource.com/1344
Call OEMCrypto_Terminate in DRM Plugin After Setup. (JB MR0)

Change-Id: I9b9850c4601284cafd968d591b9036d46edc460f
related-to-bug: 7092908
related-to-bug: 6769768
2012-09-06 16:59:24 -07:00
Jean-Baptiste Queru
ab546b2865 am 81f98dc6: (-s ours) am dd1da893: (-s ours) Hack a build fix - do not merge
* commit '81f98dc6e49780974c35905b78bcd5b7fcce56fa':
  Hack a build fix - do not merge
2012-09-04 07:23:20 -07:00
Jean-Baptiste Queru
81f98dc6e4 am dd1da893: (-s ours) Hack a build fix - do not merge
* commit 'dd1da8931dbb4bd855b3d91eccaf37af48979619':
  Hack a build fix - do not merge
2012-09-04 07:20:07 -07:00
Jean-Baptiste Queru
dd1da8931d Hack a build fix - do not merge
Change-Id: Idc4ac3ae236ed6465567c535d1ea20b64f63eebf
2012-08-31 09:55:24 -07:00
The Android Automerger
0ce5eb7c90 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-30 06:35:43 -07:00
Fred Gylys-Colwell
73ca7025eb Merge "Update Widevine Libraries to Version 4.5.0.8008 and 8010." into jb-mr1-dev 2012-08-29 11:20:52 -07:00
The Android Automerger
360238500c merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-27 06:36:18 -07:00
John "Juce" Bruce
521a13b5d7 Merge "Widevine Delivers Frames "Much Too Late" On Startup" into jb-mr1-dev 2012-08-24 15:03:12 -07:00
Jeffrey Tinker
b7ee02ec6e Merge "Add missing MODULE_OWNER tags for com.google.widevine.software.drm*" into jb-mr1-dev 2012-08-23 17:24:54 -07:00
Jeffrey Tinker
415ce6714a Merge "Send current bandwidth info event when buffering occurs" into jb-mr1-dev 2012-08-23 17:24:37 -07:00
Jeffrey Tinker
9dfa377534 Merge "Configure the Widevine cache buffer size via a property" into jb-mr1-dev 2012-08-23 17:22:57 -07:00
John "Juce" Bruce
c6c8b6f27b Widevine Delivers Frames "Much Too Late" On Startup
Because Widevine's libraries were not seeking to the start of playback, the
first bitrate track in the video was being selected rather than the most
bandwidth-appropriate.  For low-bandwidth connections, this could lead to a
"locked to group-of-pictures" scenario where Widevine quickly realizes that it
needs to change bitrates but cannot change until the next I-frame, which at the
current bandwidth will not arrive before it runs out of data.  The result is
frames being delivered late, leading to the "Much Too Late" message from
AwesomePlayer reported in the bug.

The solution is to start playback slightly differently, allowing us to use our
adaptive streaming logic to select the initial bitrate for the video.  By
specifying a start point at the beginning of the movie instead of just "now,"
we cause a seek internally, which allows us to adapt bitrates immediately at
the start of playback rather than after it has begun.  This is the common way
of starting playback on other Widevine platforms.  Android has been an
exception until now.

Bug: 6621556
Change-Id: Iaf98106f7f597ae3f0375129ac3a93aa3cb04a2c
2012-08-23 16:49:46 -07:00
Jeffrey Tinker
7f55378af6 Add missing MODULE_OWNER tags for com.google.widevine.software.drm*
Change-Id: I749b312b9fd6098b5f099c6f637360f27769184c
2012-08-23 16:31:49 -07:00