olly
3afdd7ac5a
Put @Nullable annotation in the right place
...
PiperOrigin-RevId: 249828748
2019-05-30 15:10:55 +01:00
olly
11c0c6d266
Reset upstream format when empty track selection happens
...
PiperOrigin-RevId: 249819080
2019-05-30 15:10:40 +01:00
tonihei
3e990a3d24
Fix nullness warning for MediaSource/MediaPeriod classes.
...
PiperOrigin-RevId: 249652301
2019-05-30 15:10:24 +01:00
olly
14c46bc406
Remove contentTypePredicate from DataSource constructors
...
The only known use case for contentTypePredicate is to catch
the case when a paywall web page is returned via a DataSource,
rather than the data that was being requested. These days streaming
providers should be using HTTPS, where this problem does not exist.
Devices have also gotten a lot better at showing their own
notifications when paywalls are detected, which largely mitigates
the need for the app to show a more optimal error message or
redirect the user to a browser.
It therefore makes sense to deprioritize this feature. In
particular by removing the arg from constructors, where nearly
all applications are probably passing null.
PiperOrigin-RevId: 249634594
2019-05-30 15:10:08 +01:00
aquilescanta
8d329fb41f
Move DefaultDrmSession resource acquisition to acquire
...
PiperOrigin-RevId: 249624318
2019-05-23 13:30:38 +01:00
olly
2f12374f1a
Fix IndexOutOfBounds when there are no available codecs
...
PiperOrigin-RevId: 249610014
2019-05-23 13:30:24 +01:00
tonihei
cfefdbc134
Release DownloadHelper automatically if preparation failed.
...
This prevents further unexpected updates if the MediaSource happens to
finish its preparation at a later point.
Issue:#5915
PiperOrigin-RevId: 249439246
2019-05-23 13:29:49 +01:00
olly
118218cc73
Remove cronet extension nullness blacklist
...
PiperOrigin-RevId: 249432337
2019-05-23 13:29:35 +01:00
olly
f74d2294be
Remove media-session extension nullness blacklist
...
PiperOrigin-RevId: 249431620
2019-05-23 13:29:19 +01:00
olly
10ee7d8e86
Remove more classes from nullness blacklist
...
PiperOrigin-RevId: 249431027
2019-05-23 13:29:05 +01:00
olly
d836957138
Remove some DataSource implementations from nullness blacklist
...
PiperOrigin-RevId: 249419193
2019-05-23 13:28:50 +01:00
olly
21be284318
Replace runtime lookups of string integer codes
...
Make these values compile-time constants, which can be inlined.
PiperOrigin-RevId: 249327464
2019-05-23 13:28:06 +01:00
olly
3efe320535
Remove deprecated DataSource constructors
...
PiperOrigin-RevId: 249276112
2019-05-23 13:27:36 +01:00
olly
37fc1d879d
Propagate attributes to DefaultTimeBar
...
Issue: #5765
PiperOrigin-RevId: 249251150
2019-05-23 13:26:50 +01:00
andrewlewis
491edd1edc
Update surface directly from SphericalSurfaceView
...
The SurfaceListener just sets the surface on the VideoComponent, but
SphericalSurfaceView already accesses the VideoComponent directly so it seems
simpler to update the surface directly.
PiperOrigin-RevId: 249242185
2019-05-23 13:26:19 +01:00
tonihei
9aeaf2dbb0
Add ResolvingDataSource for just-in-time resolution of DataSpecs.
...
Issue:#5779
PiperOrigin-RevId: 249234058
2019-05-21 13:53:14 +01:00
andrewlewis
468296c2bc
Suppress remaining ConstantCaseForConstant warnings
...
PiperOrigin-RevId: 249217126
2019-05-21 13:52:59 +01:00
andrewlewis
f3f885c6aa
Update a reference to SimpleExoPlayerView
...
PiperOrigin-RevId: 249068395
2019-05-21 13:52:30 +01:00
bachinger
a458635540
Add ProgressUpdateListener
...
Issue: #5834
PiperOrigin-RevId: 249067445
2019-05-21 13:52:14 +01:00
tonihei
07c4569b5f
Limit tests with specific SDK level to max=TARGET_SDK.
...
The unspecified default is the highest available SDK which may be larger
than TARGET_SDK (as specified by the manifest).
PiperOrigin-RevId: 249064173
2019-05-21 13:51:59 +01:00
tonihei
33c677846a
Use versioned manifest in all Robolectric tests.
...
We are currently defaulting to targetSdk=1 as no targetSdk is specified. Only
tests which explicitly ask for another SDK use another test SDK. With the
versioned manifest, all tests run using the targetSDK by default.
PiperOrigin-RevId: 249060796
2019-05-21 13:51:43 +01:00
Oliver Woodman
e39996e95f
Merge pull request #5907 from adamjrichter:dev-v2
...
PiperOrigin-RevId: 249044271
2019-05-20 15:40:01 +01:00
andrewlewis
bfeec25b2a
Add SilenceMediaSource
...
Issue: #5735
PiperOrigin-RevId: 248745617
2019-05-20 15:13:36 +01:00
andrewlewis
835d1f3afe
Fix platform scheduler javadoc
...
PiperOrigin-RevId: 248503971
2019-05-16 13:40:42 +01:00
olly
b5a512b673
Bump release to 2.10.1 and update release notes
...
PiperOrigin-RevId: 248503235
2019-05-16 13:40:23 +01:00
Adam Richter
7f79db0724
Split a few assertThat(a && b).isTrue() calls into separate assertions for more precise diagnostics.
2019-05-15 13:44:26 -07:00
eguven
4ca670bed3
Use MediaSourceFactory interface to simplify DownloadHelper
...
PiperOrigin-RevId: 248367983
2019-05-15 20:13:59 +01:00
olly
8edce41ff3
Add simpler HttpDataSource constructors
...
PiperOrigin-RevId: 248350557
2019-05-15 18:14:25 +01:00
aquilescanta
cf389268b0
Add links to the developer guide in some READMEs
...
PiperOrigin-RevId: 248221982
2019-05-15 18:14:07 +01:00
olly
9d450e52f2
Allow empty values in ICY metadata
...
Issue: #5876
PiperOrigin-RevId: 248119726
2019-05-15 18:13:49 +01:00
bachinger
14915fd148
Fix rendering DVB subtitle on API 28.
...
Issue: #5862
PiperOrigin-RevId: 248112524
2019-05-15 18:13:31 +01:00
aquilescanta
50c9ae0efc
Assume that encrypted content requires secure decoders in renderer support checks
...
Issue:#5568
PiperOrigin-RevId: 247973411
2019-05-15 18:13:12 +01:00
olly
0612d9f6d5
Allow line terminators in ICY metadata
...
Issue: #5876
PiperOrigin-RevId: 247935822
2019-05-15 18:12:35 +01:00
andrewlewis
a849f43e6d
Work around broken raw audio decoder on Oppo R9
...
Issue: #5782
PiperOrigin-RevId: 247934223
2019-05-15 18:12:16 +01:00
tonihei
90fc659b75
Fix Javadoc links.
...
PiperOrigin-RevId: 247630389
2019-05-15 18:10:44 +01:00
tonihei
23fa53bf0b
Add setCodecOperatingRate workaround for 48KHz audio on ZTE Axon7 mini.
...
Issue:#5821
PiperOrigin-RevId: 247621164
2019-05-15 18:10:26 +01:00
tonihei
34dd4b1441
Fix NPE in HLS deriveAudioFormat.
...
Issue:#5868
PiperOrigin-RevId: 247613811
2019-05-15 18:10:07 +01:00
aquilescanta
3b60584813
Add a release callback to DefaultDrmSession
...
In preparation for reference counting in DrmSession
PiperOrigin-RevId: 247428114
2019-05-15 18:09:30 +01:00
andrewlewis
0a6f81a2cc
Update player accessed on wrong thread URL
...
PiperOrigin-RevId: 247418601
2019-05-15 18:09:12 +01:00
tonihei
3a3a941abd
Ensure messages get deleted if they throw an exception.
...
If a PlayerMessage throws an exception, it is currently not deleted from the
list of pending messages. This may be problematic as the list of pending
messages is kept when the player is retried without reset and the message is
sent again in such a case.
PiperOrigin-RevId: 247414494
2019-05-15 18:08:53 +01:00
andrewlewis
887116cd2d
Increase gapless trim sample count
...
PiperOrigin-RevId: 247348352
2019-05-15 18:08:30 +01:00
tonihei
b3ae1d3fed
Add option to clear all downloads.
...
Adding an explicit option to clear all downloads prevents repeated database
access in a loop when trying to delete all downloads.
However, we still create an arbitrary number of parallel Task threads for this
and seperate callbacks for each download.
PiperOrigin-RevId: 247234181
2019-05-15 18:08:08 +01:00
tonihei
7d5558881d
Fix two ad insertion related bugs in DefaultPlaybackSessionManager.
...
1. A content session after an ad has been played was not re-marked as active,
leading to new ad session being marked as active too early.
2. Switching from content to post-roll ended the content session because
the return value of getAdGroupTimeUs of C.TIME_END_OF_SOURCE was not
handled. Using the nextAdGroupIndex instead.
PiperOrigin-RevId: 246977327
2019-05-15 18:07:49 +01:00
Oliver Woodman
2a0ead1b29
Merge pull request #5760 from matamegger:feature/hex_format_tags_in_url_template
...
PiperOrigin-RevId: 246733842
2019-05-05 19:42:42 +01:00
olly
f4968e1a8e
Update translations
...
PiperOrigin-RevId: 246729123
2019-05-05 18:18:53 +01:00
olly
1ef49ed205
Fix broken Javadoc
...
PiperOrigin-RevId: 246728418
2019-05-05 18:18:34 +01:00
olly
b53ac32b8c
Prevent CachedContentIndex.idToKey from growing without bound
...
PiperOrigin-RevId: 246727723
2019-05-05 18:18:15 +01:00
olly
1292a35ec6
Add a couple of assertions to DownloadManager set methods
...
PiperOrigin-RevId: 246491511
2019-05-03 19:35:13 +01:00
olly
76184deb21
Minor download documentation tweaks
...
PiperOrigin-RevId: 246333281
2019-05-03 19:34:53 +01:00
tonihei
5992699d91
Post-submit fixes for eed5d957d8.
...
One wrong return value, a useless assignment, unusual visibility of private
class fields and some nullability issues.
PiperOrigin-RevId: 246282995
2019-05-02 13:05:52 +01:00