ReadonlycodeThe read-only property MediaError.code returns a numeric value which represents the kind of error that occurred on a media element. To get a text string with specific diagnostic information, see MediaError.message.
ReadonlyMEDIA_ReadonlyMEDIA_ReadonlyMEDIA_ReadonlyMEDIA_ReadonlymessageThe read-only property MediaError.message returns a human-readable string offering specific diagnostic details related to the error described by the MediaError object, or an empty string ("") if no diagnostic information can be determined or provided.
The
MediaErrorinterface represents an error which occurred while handling media in an HTML media element based on HTMLMediaElement, such asMDN Reference