Table of Contents

Class PlayerError

Namespace
Selenium.WebDriver.BiDi.Cdp.Media
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

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

ErrorType string
Code long

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

Stack ImmutableArray<PlayerErrorSourceLocation>

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

Cause ImmutableArray<PlayerError>

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

Data JsonElement

Extra 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

ImmutableArray<PlayerError>

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

long

Data

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

public JsonElement Data { get; init; }

Property Value

JsonElement

ErrorType

public string ErrorType { get; init; }

Property Value

string

Stack

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

public ImmutableArray<PlayerErrorSourceLocation> Stack { get; init; }

Property Value

ImmutableArray<PlayerErrorSourceLocation>