PlayerError

@Serializable
data class PlayerError(val errorType: String, val code: Int, val stack: List<Media.PlayerErrorSourceLocation>, val cause: List<Media.PlayerError>, val data: Map<String, JsonElement>)

Corresponds to kMediaError

Constructors

Link copied to clipboard
constructor(errorType: String, code: Int, stack: List<Media.PlayerErrorSourceLocation>, cause: List<Media.PlayerError>, data: Map<String, JsonElement>)

Properties

Link copied to clipboard

Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError

Link copied to clipboard
val code: Int

Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h

Link copied to clipboard
val data: Map<String, JsonElement>

Extra data attached to an error, such as an HRESULT, Video Codec, etc.

Link copied to clipboard
Link copied to clipboard

A trace of where this error was caused / where it passed through.