MediaError Class

https://html.spec.whatwg.org/multipage/media.html#mediaerror

public sealed class MediaError

Properties

NameDescription
CodeGets the code of the error.
MessageGets a message that describes the error.

Gets the code of the error.

public ushort Code { get; }

Gets a message that describes the error.

public string Message { get; }

Constants

NameDescription
MediaErrAbortedThe fetching of the media resource was aborted by the user.
MediaErrDecodeAn error occurred while decoding the media resource.
MediaErrNetworkA network error occurred while fetching the media resource.
MediaErrSrcNotSupportedThe media resource is not supported.

MediaErrAborted

The fetching of the media resource was aborted by the user.

public const ushort MediaErrAborted = 1

MediaErrDecode

An error occurred while decoding the media resource.

public const ushort MediaErrDecode = 3

MediaErrNetwork

A network error occurred while fetching the media resource.

public const ushort MediaErrNetwork = 2

MediaErrSrcNotSupported

The media resource is not supported.

public const ushort MediaErrSrcNotSupported = 4