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
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
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
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
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
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
Widevine Library for Level 1: Version 4.5.0.8008 AES 601_AndroidOS_J
Widevine Library for Level 3: Version 4.5.0.8010 AES 601_AndroidOS_J
Note: The current built procedure updates the minor version number separately for
the L1 and L3 libraries. This will change in the near future.
This library includes the following changes:
https://widevine-internal-review.googlesource.com/1260
Remove Variable sAfterSeek for Release Builds
https://widevine-internal-review.googlesource.com/1228
Pause WVMK Session while seeking in order to remove race condition where data gets pulled
https://widevine-internal-review.googlesource.com/1143
Use closed-range HTTP GETs in ABR client.
https://widevine-internal-review.googlesource.com/1110
Ported ABR improvements from 6.0.0 as part of b/6500173. Changes as per Edwin's review.
Change-Id: I1e1fbda84a016356b3a1dbafd98c5d2e4935d505
related-to-bug: 6189953
related-to-bug: 6948238
related-to-bug: 6500173
The property ro.com.widevine.cachesize may be set on a device to override the
default stream buffer cache size.
related-to-bug: 6819880
Change-Id: I27da154e38289c5d1f5f2f5f424202253d0721cc
Widevine Library for Level 1: Version 4.5.0.8005 AES 601_AndroidOS_J
Widevine Library for Level 3: Version 4.5.0.8007 AES 601_AndroidOS_J
Note: The current built procedure updates the minor version number separately for
the L1 and L3 libraries. This will change in the near future.
Log file from https://googleplex-android-review.googlesource.com follows:
----------------------------------------------------------------------
commit b26352bc14498a87178678a9cf02fb29733ec7fb
Author: Fred Gylys-Colwell <fredgc@google.com>
Date: Mon Aug 20 14:48:46 2012 -0700
Update Version Number
The official build script currently modifies the minor number and the major
number, but does not yet modify the branch. This is planned work. As a
stop-gap measure, I changed this value by hand.
I also modified the header file so that the version numbers may be modified on
the command line with a -D instead of running a script that modifies the header
file on the build machine.
Change-Id: I2216600bf19ea6f268e711516d45f466b0d312da
commit 2334062773bbb32a3e0cab27770bd03cd8793c45
Merge: 429cc40 02ecdff
Author: Thomas Inskip <tinskip@google.com>
Date: Mon Aug 20 11:30:55 2012 -0700
Merge "Remove "Truncated File" warning at end of file." into RC/4.5.0/601_AndroidOS_J
commit 429cc4089c733f04785aaa09ed0b5d8fed76a567
Author: John Bruce <juce@google.com>
Date: Fri Aug 17 14:36:06 2012 -0700
Revert "Android has moved the NDK in their tree, so our Jamfiles need to be updated."
This reverts commit d8e792ee61825b9090cec5f1096ba41fde7a5d7e
Change-Id: I31470f0962591816f9a96b74866ca97c5e47ba38
commit d8e792ee61825b9090cec5f1096ba41fde7a5d7e
Author: John "Juce" Bruce <juce@google.com>
Date: Wed Aug 15 19:01:30 2012 -0700
Android has moved the NDK in their tree, so our Jamfiles need to be updated.
commit 02ecdff3dfcc93cac828bd973a41f33f067f9bcb
Author: Fred Gylys-Colwell <fredgc@google.com>
Date: Fri Aug 17 09:37:35 2012 -0700
Remove "Truncated File" warning at end of file.
Previously, when ExternalClient finds the end of file, it sets the
error flag to mark the file as truncated. This does not usually
cause a problem, because errors at the end of file can be ignored.
If we need to mark the file as truncated, we could either check that
the length of the file is actually shorter than expected, or check
that an end-of-stream marker has not already been added to the memory
chunk queue.
related-to-bug: 6635366 Could not terminate a DRM local playback session, probably due to -1004
commit a248147b0ca7db78dc42ba2e0c885044db97fe49
Author: John "Juce" Bruce <juce@google.com>
Date: Wed Aug 15 12:31:58 2012 -0700
Fixing references to renamed DIST variable in Jamfile for Android OS Plugin builds.
commit e251fff6623fab83ed2b052a0af3a1114d409f47
Author: Fred Gylys-Colwell <fredgc@google.com>
Date: Wed Aug 8 14:57:37 2012 -0700
Updated Jam files so that android master is set at compile time.
I replaced references to the /usr/local/android-master with the variable
ANDROID_DIST so that it can be set at compile time. The default is still
/usr/local/android-master, so the change should be transparent.
I changed DIST and ANDROID_MASTER both to be ANDROID_DIST in the Jam files
so that there is only one variable with that meaning.
I also updated the path for the loader script armelf.xsc. This location is now
specified in the main Jamrules file as ARMELF_PATH.
Change-Id: I2d6945546198cdf3ab828346418bd4b07ea8c176
--------------------------------------------------------------------------------------------------
Change-Id: I99f445a44f0124c61532fdccfc8f620d10e15659
related-to-bug: 6635366
Includes Widevine libraries Version 4.5.0.7809
Also fixed samplePlayer's MediaCodec mode not running and
WVDrmInfoRequestStatusKey returning incorrect value.
Change-Id: Ibcc6d313790670a908ada93be80d6bf55a67b4ed
related-to-bug: 6929628
related-to-bug: 6833718
related-to-bug: 6889322
This library release added more logging to print curl and tcp information
when the connection has stalled and download is restarted.
Change-Id: I02f3e96aa7adfdc577cbe25c32f7392f799fc954
related-to-bug: 6512768
This widevine library release allows the stream control library to
transition to the Done state from any other state. Previously, it
would only transtion to Done from Playing. This caused problem if
playback seeks to almost the end of the movie, and the end of stream
marker is read into a buffer before playback starts.
Change-Id: I9132094993fb35b0e93216845a29db46a9d07975
related-to-bug: 6635366
This widevine library release resolves an
intermittent problem with continuity counter
errors during HLS streaming.
Change-Id: Ie1009ed161daaf9c89bbdd56ac53105c51a35de0
related-to-bug: 6562375
Add logging to client for CACgi error 16; logging only occurs when error is encountered, b/6614495.
This version also includes the fix for spurious "data stopped arriving" messages, b/6512768.
Change-Id: I49e56dc1ab59abfb3037834a04748b0d5247aa50
related-to-bug: 6614495
related-to-bug: 6512768
Fixes dns resolution failures when multiple
name servers are defined.
Fixes the occasional CA CGI 16 error.
Change-Id: I3e68a7c9a01ae3caeb9473c90f021f56f7e1210b
related-to-bug: 6493657
related-to-bug: 6567835
This change alters the way that the media player
interacts with the Widevine adaptive streaming buffer
logic. It eliminates the reliance on cached buffer
duration to determine pause/play states and instead
only generates buffering events when the widevine
library is not producing data (i.e. when it is
buffering). This eliminates unnecessary pause and
rebuffer cycles, reducing startup time and the
frequency and duration of spinners.
Multi-repo commit, depends on related changes in frameworks/av
Change-Id: I5b71f954268fbd390eed7f27db98a1bb470d5cfb
related-to-bug:6503294
related-to-bug:6463780
The function WVMExtractorImpl::getCachedDurationUs returns the cached buffer
size in microseconds, and sets a status to ERROR_END_OF_STREAM at the end of
the movie. The AwesomePlayer will pause if the cache is too small and the
status is not EOS. In bug 6277231, the player would pause just before the EOS
marker would have been seen by the Widevine library.
This change checks the current play time against the total movie duration. If
there is less than 10 seconds left in the movie, the EOS flag is set.
related-to-bug: 6277231
Change-Id: I8dbf60c82c41df485185f85e72452aab0a6a9686