Tracks media errors reported by the media element.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/videojs/v10/llms.txt
Use this file to discover all available pages before exploring further.
Import
Usage
- React
- HTML
State
The current media error object, or
null when no error is present. The MediaError object includes a numeric code and a human-readable message.Actions
Clear the current error, resetting
error to null.Selector
UseselectError to subscribe to only the error slice of state. Returns undefined if the error feature is not configured.
- React
- HTML
Errors are set automatically by the media element. The only action available is
dismissError() to clear the current error.