lib / tv.smartclip.smartclientandroid.lib.dto / SxError / SxMediaError

SxMediaError

@JsonClass(true) data class SxMediaError : SxError

Represents a media error from the sdk and is used to report errors to the core.

Constructors

<init>

SxMediaError(mediaErrorCode: SxMediaErrorCode, message: String)

Represents a media error from the sdk and is used to report errors to the core.

SxMediaError(code: Int, message: String)

Properties

code

val code: Int

mediaErrorCode

See SxMediaErrorCode.

val mediaErrorCode: SxMediaErrorCode

message

Description of the error.

val message: String

timestamp

val timestamp: Long

Companion Object Functions

buildMediaError

Builds a new SxMediaError out of a Throwable thrown by the ExoPlayer.

fun Throwable.buildMediaError(): SxMediaError