MediaError Class
https://html.spec.whatwg.org/multipage/media.html#mediaerror
public sealed class MediaErrorProperties
| Name | Description |
|---|---|
| Code | Gets the code of the error. |
| Message | Gets a message that describes the error. |
Code
MediaElements.csGets the code of the error.
public ushort Code { get; }Message
MediaElements.csConstants
| Name | Description |
|---|---|
| MediaErrAborted | The fetching of the media resource was aborted by the user. |
| MediaErrDecode | An error occurred while decoding the media resource. |
| MediaErrNetwork | A network error occurred while fetching the media resource. |
| MediaErrSrcNotSupported | The media resource is not supported. |
MediaErrAborted
The fetching of the media resource was aborted by the user.
public const ushort MediaErrAborted = 1MediaErrDecode
An error occurred while decoding the media resource.
public const ushort MediaErrDecode = 3MediaErrNetwork
A network error occurred while fetching the media resource.
public const ushort MediaErrNetwork = 2MediaErrSrcNotSupported
The media resource is not supported.
public const ushort MediaErrSrcNotSupported = 4