Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1f83926d
authored
May 05, 2021
by
aquilescanta
Committed by
bachinger
May 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Reserve x000 error codes for the UNSPECIFIED error codes
PiperOrigin-RevId: 372146069
parent
61bbdb37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java
library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java
View file @
1f83926d
...
@@ -115,37 +115,37 @@ public class PlaybackException extends Exception implements Bundleable {
...
@@ -115,37 +115,37 @@ public class PlaybackException extends Exception implements Bundleable {
* Caused by a parsing error associated to a media manifest. Examples of a media manifest are a
* Caused by a parsing error associated to a media manifest. Examples of a media manifest are a
* DASH or a SmoothStreaming manifest, or an HLS playlist.
* DASH or a SmoothStreaming manifest, or an HLS playlist.
*/
*/
public
static
final
int
ERROR_CODE_PARSING_MANIFEST_MALFORMED
=
300
0
;
public
static
final
int
ERROR_CODE_PARSING_MANIFEST_MALFORMED
=
300
1
;
/** Caused by a parsing error associated to a media container format bitstream. */
/** Caused by a parsing error associated to a media container format bitstream. */
public
static
final
int
ERROR_CODE_PARSING_CONTAINER_MALFORMED
=
300
1
;
public
static
final
int
ERROR_CODE_PARSING_CONTAINER_MALFORMED
=
300
2
;
/**
/**
* Caused by attempting to extract a file with an unsupported media container format, or an
* Caused by attempting to extract a file with an unsupported media container format, or an
* unsupported media container feature.
* unsupported media container feature.
*/
*/
public
static
final
int
ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
=
300
2
;
public
static
final
int
ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
=
300
3
;
/**
/**
* Caused by an unsupported feature in a media manifest. Examples of a media manifest are a DASH
* Caused by an unsupported feature in a media manifest. Examples of a media manifest are a DASH
* or a SmoothStreaming manifest, or an HLS playlist.
* or a SmoothStreaming manifest, or an HLS playlist.
*/
*/
public
static
final
int
ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED
=
300
3
;
public
static
final
int
ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED
=
300
4
;
// Decoding errors (4xxx).
// Decoding errors (4xxx).
/** Caused by a decoder initialization failure. */
/** Caused by a decoder initialization failure. */
public
static
final
int
ERROR_CODE_DECODER_INIT_FAILED
=
400
0
;
public
static
final
int
ERROR_CODE_DECODER_INIT_FAILED
=
400
1
;
/** Caused by a failure while trying to decode media samples. */
/** Caused by a failure while trying to decode media samples. */
public
static
final
int
ERROR_CODE_DECODING_FAILED
=
400
1
;
public
static
final
int
ERROR_CODE_DECODING_FAILED
=
400
2
;
/** Caused by trying to decode content whose format exceeds the capabilities of the device. */
/** Caused by trying to decode content whose format exceeds the capabilities of the device. */
public
static
final
int
ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES
=
400
2
;
public
static
final
int
ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES
=
400
3
;
/** Caused by trying to decode content whose format is not supported. */
/** Caused by trying to decode content whose format is not supported. */
public
static
final
int
ERROR_CODE_DECODING_FORMAT_UNSUPPORTED
=
400
3
;
public
static
final
int
ERROR_CODE_DECODING_FORMAT_UNSUPPORTED
=
400
4
;
// AudioTrack errors (5xxx).
// AudioTrack errors (5xxx).
/** Caused by an AudioTrack initialization failure. */
/** Caused by an AudioTrack initialization failure. */
public
static
final
int
ERROR_CODE_AUDIO_TRACK_INIT_FAILED
=
500
0
;
public
static
final
int
ERROR_CODE_AUDIO_TRACK_INIT_FAILED
=
500
1
;
/** Caused by an AudioTrack write operation failure. */
/** Caused by an AudioTrack write operation failure. */
public
static
final
int
ERROR_CODE_AUDIO_TRACK_WRITE_FAILED
=
500
1
;
public
static
final
int
ERROR_CODE_AUDIO_TRACK_WRITE_FAILED
=
500
2
;
// DRM errors (6xxx).
// DRM errors (6xxx).
...
@@ -153,19 +153,19 @@ public class PlaybackException extends Exception implements Bundleable {
...
@@ -153,19 +153,19 @@ public class PlaybackException extends Exception implements Bundleable {
* Caused by a chosen DRM protection scheme not being supported by the device. Examples of DRM
* Caused by a chosen DRM protection scheme not being supported by the device. Examples of DRM
* protection schemes are ClearKey and Widevine.
* protection schemes are ClearKey and Widevine.
*/
*/
public
static
final
int
ERROR_CODE_DRM_SCHEME_UNSUPPORTED
=
600
0
;
public
static
final
int
ERROR_CODE_DRM_SCHEME_UNSUPPORTED
=
600
1
;
/** Caused by a failure while provisioning the device. */
/** Caused by a failure while provisioning the device. */
public
static
final
int
ERROR_CODE_DRM_PROVISIONING_FAILED
=
600
1
;
public
static
final
int
ERROR_CODE_DRM_PROVISIONING_FAILED
=
600
2
;
/** Caused by attempting to play incompatible DRM-protected content. */
/** Caused by attempting to play incompatible DRM-protected content. */
public
static
final
int
ERROR_CODE_DRM_CONTENT_ERROR
=
600
2
;
public
static
final
int
ERROR_CODE_DRM_CONTENT_ERROR
=
600
3
;
/** Caused by a failure while trying to obtain a license. */
/** Caused by a failure while trying to obtain a license. */
public
static
final
int
ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED
=
600
3
;
public
static
final
int
ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED
=
600
4
;
/** Caused by an operation being disallowed by a license policy. */
/** Caused by an operation being disallowed by a license policy. */
public
static
final
int
ERROR_CODE_DRM_DISALLOWED_OPERATION
=
600
4
;
public
static
final
int
ERROR_CODE_DRM_DISALLOWED_OPERATION
=
600
5
;
/** Caused by an error in the DRM system. */
/** Caused by an error in the DRM system. */
public
static
final
int
ERROR_CODE_DRM_SYSTEM_ERROR
=
600
5
;
public
static
final
int
ERROR_CODE_DRM_SYSTEM_ERROR
=
600
6
;
/** Caused by the device having revoked DRM privileges. */
/** Caused by the device having revoked DRM privileges. */
public
static
final
int
ERROR_CODE_DRM_DEVICE_REVOKED
=
600
6
;
public
static
final
int
ERROR_CODE_DRM_DEVICE_REVOKED
=
600
7
;
/**
/**
* Player implementations that want to surface custom errors can use error codes greater than this
* Player implementations that want to surface custom errors can use error codes greater than this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment