The LoadingIndicator
component is a visual indicator of the loading state of the media.
Loading
component can be composed with any other elements. Typically it
is combined with Postermatcher
patternforceMount
matcher
LoadingIndicator
should be visible. It can be a direct boolean comparison with the loading state
or a function that provides custom logic for visibility determination.
data-livepeer-loading-indicator
data-loading
"true"
when media is loading and "false"
when it’s not.
data-visible
"true"
meaning it’s
currently visible and "false"
denoting it’s not.
This is often used for dynamically applying enter/exit CSS animations.