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 convertExceptionToError(exception: PlaybackException, appContext: Context, isDrmContent: Boolean = false): Error

Converts the PlaybackException to Error.

Link copied to clipboard

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

Link copied to clipboard

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
Link copied to clipboard
fun getCodecType(exceptionString: String): String?
Link copied to clipboard
fun getVideoCodecDetails(exceptionString: String): String?
Link copied to clipboard

Checks whether the error thrown was eligible for player recover

Link copied to clipboard

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.