Interface MediaError

An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as

MDN Reference

interface MediaError {
    MEDIA_ERR_ABORTED: 1;
    MEDIA_ERR_DECODE: 3;
    MEDIA_ERR_NETWORK: 2;
    MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
    code: number;
    message: string;
}

Properties

MEDIA_ERR_ABORTED: 1
MEDIA_ERR_DECODE: 3
MEDIA_ERR_NETWORK: 2
MEDIA_ERR_SRC_NOT_SUPPORTED: 4
code: number
message: string