claincly
747b0f057b
Make DataSourceException use PlaybackException error codes.
...
- Use `PlaybackException.ErrorCode` IntDef for `DataSourceException` error code
- Deprecate `DataSourceException.POSITION_OUT_OF_RANGE`
- All other changes are related to replacing the deprecated constant and
constructor
PiperOrigin-RevId: 382683522
2021-07-09 08:43:22 +01:00
claincly
ee0d905eed
Add ERROR_CODE_TIMEOUT.
...
Also remove the method for creating a TYPE_RENDERER ExoPlaybackException
with unknown renderer name and index.
PiperOrigin-RevId: 382589655
2021-07-09 08:40:38 +01:00
aquilescanta
b0ddef5bcf
Assign DRM error codes
...
PiperOrigin-RevId: 382527115
2021-07-09 08:38:13 +01:00
olly
91cb54b84e
Make SkipAndContinueIfSampleTooLarge as default behavior.
...
Remove experimentalSetSkipAndContinueIfSampleTooLarge() api
PiperOrigin-RevId: 382383498
2021-07-09 08:29:58 +01:00
olly
dea52048cb
Bump dependency versions
...
PiperOrigin-RevId: 382277352
2021-06-30 13:53:01 +01:00
samrobinson
9013facdd7
Rename PlaylistMediaMetadata to PlaylistMetadata in Player.
...
This affects the setter, getter and callback, as well as various
media 3 methods.
PiperOrigin-RevId: 382275672
2021-06-30 13:51:51 +01:00
aquilescanta
155e27ec7c
Move ExoPlaybackException back into core
...
PiperOrigin-RevId: 381941053
2021-06-30 13:47:30 +01:00
claincly
ffbec2234d
Assign PlaybackException.ErrorCode to renderer failures.
...
PiperOrigin-RevId: 381852092
2021-06-30 13:45:02 +01:00
olly
7aaba1ffe5
Migrate usage of Player.EventListener to Player.Listener
...
PiperOrigin-RevId: 381837274
2021-06-30 13:43:51 +01:00
aquilescanta
b58fce1bd9
Assign some more IO error codes
...
Specifically:
- ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT
- ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
- ERROR_CODE_IO_NETWORK_CONNECTION_CLOSED
PiperOrigin-RevId: 381441329
2021-06-30 13:35:37 +01:00
aquilescanta
465f7c06d8
Add ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED
...
And assign it to CleartextNotPermittedException.
PiperOrigin-RevId: 381247430
2021-06-30 13:34:31 +01:00
aquilescanta
1cc62c65a7
Add @ErrorCode to local variables in ExoPlayerImplInternal
...
PiperOrigin-RevId: 381236418
2021-06-30 13:30:58 +01:00
aquilescanta
cca4ac73ca
Assign ERROR_CODE_IO_DNS_FAILED to UnknownHostException
...
PiperOrigin-RevId: 381235721
2021-06-30 13:29:53 +01:00
aquilescanta
fc26d4eeb1
Remove the last deprecated ParserException constructor
...
PiperOrigin-RevId: 381221669
2021-06-30 13:27:45 +01:00
bachinger
1cb4fb290f
Change signature of ChunkSource.onChunkLoadError
...
A no-op change that changes the signature of the onChunkLoadError method of the ChunkSource. Implementors can get the exclusion duration directly from the LoadErrorHndlingPolicy instead of receiving it as an argument of the callback.
PiperOrigin-RevId: 381102935
2021-06-30 13:26:32 +01:00
bachinger
ed471fae96
Add @FallbackType to LoadErrorHandlingPolicy
...
No-op change that adds the @FallbackType IntDef and changes the signature of getBlacklistDurationMsFor(LoadErrorInfo) to getExclusionDurationMsFor(@FallbackType, LoadErrorInfo).
PiperOrigin-RevId: 381075496
2021-06-30 13:25:08 +01:00
aquilescanta
1a8592c5c0
Add Player.Listener.onPlayerErrorChanged
...
Equivalent to onPlayerError, except it's also called for null.
PiperOrigin-RevId: 381015336
2021-06-30 13:17:49 +01:00
aquilescanta
d87fdaa370
Fix the single-sample SampleStream regarding FLAG_REQUIRE_FORMAT
...
The current FLAG_REQUIRE_FORMAT documentation states: If an end of
stream buffer would be read were the flag not set, then behavior is
unchanged.
PiperOrigin-RevId: 380792251
2021-06-30 13:14:12 +01:00
aquilescanta
81c542b6a7
Remove deprecated ParserException constructor
...
And replace it with factory method which includes more
context for error code assignment.
PiperOrigin-RevId: 380624625
2021-06-21 22:29:27 +01:00
bachinger
f609fecf9b
Parse BaseURL element including DVB attributes in DASH manifest
...
This change parses the entire BaseURL element including DVB extension attributes, stores it in an instance of new BaseUrl class and puts it in a list of base URLs of the resulting Representation. The base url handling itself is still the same, which means that only the first base url is taken into account, just as before this change.
PiperOrigin-RevId: 380609495
2021-06-21 22:28:17 +01:00
ibaker
f8320287ef
Simplify FileDataSourceContractTest
...
#minor-release
PiperOrigin-RevId: 380531272
2021-06-21 22:21:56 +01:00
ibaker
607fa8bf74
Allow repeated DRM provisioning in DefaultDrmSessionManager
...
Also change to explicitly track the provisioning session, which makes
the code easier to reason about than always using the zero'th element
of the list.
PiperOrigin-RevId: 380181453
2021-06-21 22:18:57 +01:00
aquilescanta
fc1d3dd192
Make onPlayerError take a PlaybackException
...
PiperOrigin-RevId: 380174672
2021-06-21 22:15:01 +01:00
ibaker
043c2e7e33
Move CacheDataSourceContractTest to c.g.a.exoplayer2.upstream.cache
...
This is the package that CacheDataSource and CacheDataSourceTest(2) are
in.
PiperOrigin-RevId: 380156879
2021-06-21 22:12:21 +01:00
ibaker
0f23fddeef
Add a test for the provisioning flow to DefaultDrmSessionManagerTest
...
#minor-release
PiperOrigin-RevId: 379913814
2021-06-21 22:01:38 +01:00
olly
63f12f0216
Remove obsolete Checker Framework suppression strings
...
More information: go/checker-3130-lsc
Tested:
TAP for global presubmit queue passed after automated deflaking of failures: http://mondo/deflaker/run/ff80a4f9-d5d7-47ac-9560-63372e1ff624 http://mondo/deflaker/run/ca3ce61f-2af8-4fa7-b6e4-c98b5c4d950c
http://test/OCL:379405669:BASE:379421861:1623763190392:bd2d256a
PiperOrigin-RevId: 379623080
2021-06-21 21:57:56 +01:00
olly
a3dbd61239
Remove obsolete Checker Framework suppression strings
...
More information: go/checker-3130-lsc
Tested:
Some test failures are present, but the CL author has decided to mail the change anyway
PiperOrigin-RevId: 379622938
2021-06-21 21:56:37 +01:00
kimvde
912acacbe1
Add onFastForward/RewindIncrementChanged to Player
...
PiperOrigin-RevId: 379497408
2021-06-15 18:42:19 +01:00
aquilescanta
5f1921f531
Make Player.getPlayerError return a PlaybackException
...
PiperOrigin-RevId: 378899373
2021-06-15 18:27:48 +01:00
Oliver Woodman
5f77bf0469
Merge pull request #6500 from DolbyLaboratories:dev-v2-isDirectPlaybackSupported
...
PiperOrigin-RevId: 378895355
2021-06-15 18:26:27 +01:00
kimvde
aeeef65430
Add onAvailableCommandsChanged to AnalyticsListener
...
PiperOrigin-RevId: 378886637
2021-06-15 18:24:06 +01:00
kimvde
53d67daaef
Add available commands to fast forward and rewind
...
PiperOrigin-RevId: 378842286
2021-06-11 12:24:37 +01:00
olly
3e819d082a
Make javadoc valid html5
...
As of [JDK-8247957](https://bugs.openjdk.java.net/browse/JDK-8247957 ), doclint
no longer supports html4.
Tested:
Some test failures are present, but the CL author has decided to mail the change anyway
PiperOrigin-RevId: 378819179
2021-06-11 12:23:35 +01:00
olly
c728de9947
Fix IncorrectContextUseViolation on Android 11
...
Issue: #8246
PiperOrigin-RevId: 378606475
2021-06-10 11:25:35 +01:00
samrobinson
5204bb0d44
Add playlist MediaMetadata to the Player.
...
PiperOrigin-RevId: 378407609
2021-06-10 11:23:30 +01:00
aquilescanta
22b126cac3
Assign ERROR_CODE_IO_NO_PERMISSION to ErrnoException (EACCES)
...
PiperOrigin-RevId: 378134423
2021-06-08 16:38:44 +01:00
kimvde
e4263c4a67
Add fast forward and rewind methods to Player
...
PiperOrigin-RevId: 378104210
2021-06-08 13:04:56 +01:00
olly
4b30cca914
Update @SuppressWarnings
annotations for go/nullness diagnostics
...
in preparation for upgrading the version of the Checker Framework in google3.
More information: go/checker-3110-lsc
PiperOrigin-RevId: 377925828
2021-06-08 13:02:47 +01:00
olly
71fb7411ce
Notify the client when ExoPlayer fallbacks to a different codec.
...
PiperOrigin-RevId: 377602447
2021-06-08 13:01:44 +01:00
christosts
fd4cfcdd67
AsynchronousMediaCodecAdapter cleanup
...
After refactoring MediaCodecAdapter.Factory to create configured and
started MediaCodecAdapters in a single operation, the
AsynchronousMediaCodecAdapter does not need to have separate methods to
configure and start, so they are merged. The CONFIGURED state is
removed.
PiperOrigin-RevId: 377519117
2021-06-08 12:56:39 +01:00
aquilescanta
29eeff9ff7
Assign error codes to FileDataSourceExceptions
...
PiperOrigin-RevId: 377481210
2021-06-08 12:54:31 +01:00
Dean Wheatley
cb1084f498
Use isDirectPlaybackSupported in AudioCapabilities
...
For Q devices and higher, use AudioTrack.isDirectPlaybackSupported
for determining AudioCapabilities.
2021-06-07 20:59:31 +10:00
aquilescanta
af4b891c99
Use UnrecognizedFormatException for progressive media only
...
PiperOrigin-RevId: 377303025
2021-06-03 20:07:04 +01:00
olly
2b6581afe0
Fix nullness checks for addition of Cursor.getString stub
...
PiperOrigin-RevId: 377298145
2021-06-03 20:05:58 +01:00
kimvde
b0a3bc5b28
Rename ExoFlags to FlagSet
...
We want to remove mentions of ExoPlayer for
convergence.
PiperOrigin-RevId: 377290376
2021-06-03 20:04:39 +01:00
aquilescanta
36841d4f6f
Replace one of the ParserException constructors with factory method
...
PiperOrigin-RevId: 377281961
2021-06-03 20:03:16 +01:00
olly
bb2e0bc0ef
Bump targetSdkVersion to 30
...
- Remove Robolectric workarounds that are no longer needed
- Add workarounds for b/190021699
PiperOrigin-RevId: 377279422
2021-06-03 20:01:50 +01:00
aquilescanta
89fe0d0cf9
Make AnalyticsListener.onPlayerError take a PlaybackException
...
NO_EXTERNAL
PiperOrigin-RevId: 377090819
2021-06-03 13:49:28 +01:00
olly
08c882a6ae
Trigger reconfiguration on newly obtained MediaCodecAdapters
...
Add the `needsReconfiguration` API on the `MediaCodecAdapter` interface so that `MediaCodecRenderer` can reconfigure the `MediaCodec` in case a `MediaCodecAdapter` needs to be reconfigured immediately after being obtained from the `MediaCodecAdapter.Factory`.
PiperOrigin-RevId: 376944334
2021-06-02 18:10:01 +01:00
bachinger
2fb61b8ab5
Remove fully qualified package in link tag to avoid reformatting
...
PiperOrigin-RevId: 376932836
2021-06-02 00:00:55 +01:00