Back to Exoplayer

ExoTimeoutException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ExoTimeoutException.html

latest5.6 KB
Original Source

Package com.google.android.exoplayer2

Class ExoTimeoutException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classExoTimeoutExceptionextends[RuntimeException](https://developer.android.com/reference/java/lang/RuntimeException.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A timeout of an operation on the ExoPlayer playback thread. See Also:Serialized Form

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static interface | ExoTimeoutException.TimeoutOperation | Deprecated.

The operation which produced the timeout error. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static int | TIMEOUT_OPERATION_DETACH_SURFACE | Deprecated.

The error occurred while detaching a surface from the player. | | static int | TIMEOUT_OPERATION_RELEASE | Deprecated.

The error occurred in Player.release(). | | static int | TIMEOUT_OPERATION_SET_FOREGROUND_MODE | Deprecated.

The error occurred in ExoPlayer.setForegroundMode(boolean). | | static int | TIMEOUT_OPERATION_UNDEFINED | Deprecated.

The operation where this error occurred is not defined. | | @com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation int | timeoutOperation | Deprecated.

The operation on the ExoPlayer playback thread that timed out. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | ExoTimeoutException​(@com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation int timeoutOperation) | Deprecated.

Creates the timeout exception. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

TIMEOUT_OPERATION_UNDEFINED

public static final int TIMEOUT_OPERATION_UNDEFINED

Deprecated.

The operation where this error occurred is not defined. See Also:Constant Field Values

- 

TIMEOUT_OPERATION_RELEASE

public static final int TIMEOUT_OPERATION_RELEASE

Deprecated.

The error occurred in Player.release(). See Also:Constant Field Values

- 

TIMEOUT_OPERATION_SET_FOREGROUND_MODE

public static final int TIMEOUT_OPERATION_SET_FOREGROUND_MODE

Deprecated.

The error occurred in ExoPlayer.setForegroundMode(boolean). See Also:Constant Field Values

- 

TIMEOUT_OPERATION_DETACH_SURFACE

public static final int TIMEOUT_OPERATION_DETACH_SURFACE

Deprecated.

The error occurred while detaching a surface from the player. See Also:Constant Field Values

- 

timeoutOperation

[@TimeoutOperation](ExoTimeoutException.TimeoutOperation.html "annotation in com.google.android.exoplayer2")public final @com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation int timeoutOperation

Deprecated.

The operation on the ExoPlayer playback thread that timed out.

Constructor Detail

- 

ExoTimeoutException

public ExoTimeoutException​([@TimeoutOperation](ExoTimeoutException.TimeoutOperation.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation int timeoutOperation)

Deprecated.

Creates the timeout exception. Parameters:timeoutOperation - The operation that produced the timeout.