media/library/common/src/main/java/com/google/android/exoplayer2
claincly e4c9078a0c Infer error code in network-based DataSourceException.
In some DataSources, it is not easy to assign an error code at the throw site.
For example, CronetDataSource.readInternal() throws SocketTimeoutException
on L1033, and is caught at L754 as IOException and is thrown.

We need the logic to assign error code for the actual type of the error cause.
While we can certainly do in individual DataSources, IMO there's value in
making this logic generic at a higher level (like what is in this CL).

The catch and translation logic is borrowed from EPII:L646.

PiperOrigin-RevId: 385789629
2021-07-21 14:46:40 +01:00
..
audio Remove the last deprecated ParserException constructor 2021-06-30 13:27:45 +01:00
decoder Format Java source files 2021-05-06 13:32:25 +01:00
device Deprecate component listener in favor of player 2021-04-30 18:55:06 +01:00
drm Format Java source files 2021-05-06 13:32:25 +01:00
metadata Add an artworkDataType to MediaMetadata. 2021-07-21 14:38:30 +01:00
offline simplify PlayerActivity towards using the media item only 2020-04-08 21:47:48 +01:00
source Remove obsolete Checker Framework suppression strings 2021-06-21 21:56:37 +01:00
text Remove obsolte TODO 2021-05-26 11:33:04 +01:00
trackselection Move most of DefaultTrackSelector params to TrackSelectionParameters 2021-07-09 09:25:15 +01:00
ui Convergence: Continue decoupling UI from Core 2021-04-09 13:19:07 +01:00
upstream Infer error code in network-based DataSourceException. 2021-07-21 14:46:40 +01:00
util End ListenerSet iteration sooner 2021-07-14 12:14:19 +01:00
video Replace one of the ParserException constructors with factory method 2021-06-03 20:03:16 +01:00
BasePlayer.java Rename previous/next to seekToPrevious/NextWindow in Player 2021-07-14 12:17:15 +01:00
Bundleable.java Remove nullable utility methods in Bundleable 2021-02-19 10:57:32 +00:00
BundleListRetriever.java Implement Bundleable for Timeline 2021-03-12 10:53:41 +00:00
C.java Re-order seekBack and seekForward in Player 2021-07-13 09:59:14 +01:00
ControlDispatcher.java Rename previous/next to seekToPrevious/NextWindow in Player 2021-07-14 12:17:15 +01:00
DefaultControlDispatcher.java Use Player methods in DefaultControlDispatcher 2021-07-20 08:36:46 +01:00
ExoPlayerLibraryInfo.java Bump version to 2.14.1 and tidy release notes 2021-06-10 17:39:58 +01:00
Format.java Add info about trick-playness to the Format log string 2021-06-30 13:50:32 +01:00
ForwardingPlayer.java Deprecate static metadata getter and listener method. 2021-07-21 14:44:00 +01:00
HeartRating.java Use getters in Rating subclasses rather than direct field access. 2021-05-07 10:21:50 +01:00
IllegalSeekPositionException.java Format Java source files 2021-05-06 13:32:25 +01:00
MediaItem.java Add toBundle(boolean excludeMediaItems) to Timeline. 2021-06-15 18:30:32 +01:00
MediaMetadata.java Add an artworkDataType to MediaMetadata. 2021-07-21 14:38:30 +01:00
package-info.java Split out extractor and common modules 2020-01-24 18:15:19 +00:00
ParserException.java Remove the last deprecated ParserException constructor 2021-06-30 13:27:45 +01:00
PercentageRating.java Use getters in Rating subclasses rather than direct field access. 2021-05-07 10:21:50 +01:00
PlaybackException.java Add ERROR_CODE_DRM_LICENSE_EXPIRED for KeysExpiredException 2021-07-13 10:05:20 +01:00
PlaybackParameters.java Implement Bundleable for PlaybackParameters 2021-03-12 10:37:41 +00:00
Player.java Deprecate static metadata getter and listener method. 2021-07-21 14:44:00 +01:00
Rating.java Revise javadoc for Rating classes 2021-05-04 11:17:44 +01:00
StarRating.java Use getters in Rating subclasses rather than direct field access. 2021-05-07 10:21:50 +01:00
ThumbRating.java Use getters in Rating subclasses rather than direct field access. 2021-05-07 10:21:50 +01:00
Timeline.java Add toBundle(boolean excludeMediaItems) to Timeline. 2021-06-15 18:30:32 +01:00