The ErrorIndicator
component is a visual representation of error states in media playback based on error types.
Error
component can be shown for all error types, or a subset of them.
It is usually recommended to be more granular in the error types, since some
errors are more “fatal” and some cannot be recovered from.matcher
patternforceMount
matcher
ErrorIndicator
should be
visible. It can be a string indicating a broad category of errors (like "all"
or "not-permissions"
) or a more specific error type. Alternatively, it can be
a function for custom logic, receiving the PlaybackError type and returning a
boolean for whether it should be shown.
data-livepeer-error-indicator
data-error-state
"true"
or "false"
).
data-error-type
"none"
if no error is present.
Could be one of:
"offline" | "access-control" | "fallback" | "permissions" | "unknown" | "none"
data-visible
"true"
or "false"
).
This is often used for dynamically applying enter/exit CSS animations.