Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IMediaError

interface IMediaError
Extends com.amazon.apmf.IStandard All media elements have an associated error status, which records the last error the element encountered since its resource selection algorithm was last invoked. The error attribute, on getting, must return the MediaError object created for this last error, or null if there has not been an error. For further details see https://html.spec.whatwg.org/multipage/media.html#mediaerror

Methods

getCode()

MediaErrorCode getCode()
Returns the current error’s error code. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-code

Returns

MediaErrorCode MediaErrorCode The error code enumeration.

getMessage()

string getMessage()
Returns a specific informative diagnostic message about the error For further details see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-message

Returns

string The error message
Last modified on October 29, 2026