BufferingIndicator shows a loading indicator when the media is waiting to buffer and not paused, but only after a configurable delay (default 500ms). This delay prevents the indicator from flickering during brief stalls. The indicator hides immediately when buffering ends.
Requires the
playback feature to be registered with the player.Import
Basic Usage
Custom Render
Props
Milliseconds to wait before showing the indicator. Defaults to
500. Set to 0 to show immediately.Custom render prop. Receives the computed HTML props and current state.
CSS class name or a function that receives state and returns a class name.
Inline style or a function that receives state and returns a style object.
State Data Attributes
| Attribute | Description |
|---|---|
data-visible | Present when the buffering indicator should be displayed (after the delay has elapsed). |