Class PlayerError
Corresponds to kMediaError
public sealed record PlayerError : IEquatable<PlayerError>
- Inheritance
-
PlayerError
- Implements
- Inherited Members
Constructors
PlayerError(string, long, ImmutableArray<PlayerErrorSourceLocation>, ImmutableArray<PlayerError>, JsonElement)
Corresponds to kMediaError
public PlayerError(string ErrorType, long Code, ImmutableArray<PlayerErrorSourceLocation> Stack, ImmutableArray<PlayerError> Cause, JsonElement Data)
Parameters
ErrorTypestringCodelongCode is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
StackImmutableArray<PlayerErrorSourceLocation>A trace of where this error was caused / where it passed through.
CauseImmutableArray<PlayerError>Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
DataJsonElementExtra data attached to an error, such as an HRESULT, Video Codec, etc.
Properties
Cause
Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
public ImmutableArray<PlayerError> Cause { get; init; }
Property Value
Code
Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
public long Code { get; init; }
Property Value
Data
Extra data attached to an error, such as an HRESULT, Video Codec, etc.
public JsonElement Data { get; init; }
Property Value
ErrorType
public string ErrorType { get; init; }
Property Value
Stack
A trace of where this error was caused / where it passed through.
public ImmutableArray<PlayerErrorSourceLocation> Stack { get; init; }