Package-level declarations

Types

Link copied to clipboard
class ErrorfulException(val errorCode: Int, val message: String, val contextDescription: String? = null) : RuntimeException, Error

Extension of the RuntimeException that also implements Error interface.

Properties

Link copied to clipboard
const val CODEC_TYPE: String
Link copied to clipboard
const val CODEC_USED: String
Link copied to clipboard
const val CT_AUDIO: String
Link copied to clipboard
const val CT_VIDEO: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun convertBehindLiveWindowExceptionToError(exception: BehindLiveWindowException, extraErrorContext: String): Error

Converts BehindLiveWindowException to Error.

fun convertDecoderInitializationExceptionToError(decoderException: MediaCodecRenderer.DecoderInitializationException, extraErrorContext: String): Error

Converts the MediaCodecRenderer.DecoderInitializationException to Error.

Link copied to clipboard
fun convertDRMSessionExceptionToError(drmSessionException: DrmSession.DrmSessionException, extraErrorContext: String): Error

Converts the DrmSession.DrmSessionException to Error.

Link copied to clipboard
fun convertExceptionToError(exception: PlaybackException, appContext: Context, isDrmContent: Boolean = false): Error

Converts the PlaybackException to Error.

Link copied to clipboard
fun convertHttpDataSourceExceptionToError(dataSourceException: HttpDataSource.HttpDataSourceException, extraErrorContext: String): Error

Converts the HttpDataSource.HttpDataSourceException to Error.

Link copied to clipboard
fun convertRendererExceptionToError(exception: Exception, extraErrorContext: String): Error

Converts the Exception, that occurred in Renderer, to Error.

Link copied to clipboard
fun convertSourceExceptionToError(exception: IOException, extraErrorContext: String): Error

Converts the Exception, that occurred during loading data from a Media Source, to Error.

Link copied to clipboard
fun convertUnExpectedExceptionToError(exception: Exception, extraErrorContext: String): Error

Converts the unexpected RuntimeException to Error.

Link copied to clipboard
fun getCodecErrorInfo(exception: PlaybackException, isDrmContent: Boolean): String?
Link copied to clipboard
fun getCodecType(exceptionString: String): String?
Link copied to clipboard
fun getVideoCodecDetails(exceptionString: String): String?
Link copied to clipboard
fun PlaybackException.isRecoverable(error: Error): Boolean

Checks whether the error thrown was eligible for player recover

Link copied to clipboard
fun ExoPlaybackException.toError(extraErrorContext: String): Error

ExoPlaybackException extension function that converts ExoPlaybackException to Error.

fun PlaybackException.toError(appContext: Context, isDrmContent: Boolean = false): Error

PlaybackException extension function that converts PlaybackException to Error.