struct Protocol::Media::PlayerError

Overview

Corresponds to kMediaError

Included Modules

Defined in:

protocol/media.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cause : Array(PlayerError) #

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


[View source]
def code : Int::Primitive #

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


[View source]
def data : JSON::Any #

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


[View source]
def error_type : String #

[View source]
def stack : Array(PlayerErrorSourceLocation) #

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


[View source]