PlayerError

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

Corresponds to kMediaError

Official doc

Constructors

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

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: JsonObject

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

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

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