ExoTimeoutException


@UnstableApi
public final class ExoTimeoutException extends RuntimeException


A timeout of an operation on the ExoPlayer playback thread.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation ExoTimeoutException.TimeoutOperation

The operation which produced the timeout error.

Constants

static final int

The error occurred while detaching a surface from the player.

static final int

The error occurred in release.

static final int

The error occurred in setForegroundMode.

static final int

The operation where this error occurred is not defined.

Public fields

final int

The operation on the ExoPlayer playback thread that timed out.

Public constructors

Creates the timeout exception.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Constants

TIMEOUT_OPERATION_DETACH_SURFACE

public static final int TIMEOUT_OPERATION_DETACH_SURFACE = 3

The error occurred while detaching a surface from the player.

TIMEOUT_OPERATION_RELEASE

public static final int TIMEOUT_OPERATION_RELEASE = 1

The error occurred in release.

TIMEOUT_OPERATION_SET_FOREGROUND_MODE

public static final int TIMEOUT_OPERATION_SET_FOREGROUND_MODE = 2

The error occurred in setForegroundMode.

TIMEOUT_OPERATION_UNDEFINED

public static final int TIMEOUT_OPERATION_UNDEFINED = 0

The operation where this error occurred is not defined.

Public fields

timeoutOperation

@ExoTimeoutException.TimeoutOperation
public final int timeoutOperation

The operation on the ExoPlayer playback thread that timed out.

Public constructors

ExoTimeoutException

public ExoTimeoutException(
    @ExoTimeoutException.TimeoutOperation int timeoutOperation
)

Creates the timeout exception.

Parameters
@ExoTimeoutException.TimeoutOperation int timeoutOperation

The operation that produced the timeout.