Display
Buffering Indicator
This page showcases how to create a loading indicator for when media has paused due to a lack of data.
Usage
We don't provide a buffering indicator component out of the box because you can easily create one with some HTML, CSS, and media data attributes.
The data-waiting
attribute can be used to show the indicator while media is buffering. Optionally, the data-can-play
attribute could also be used to display the indicator while media is initially loading.
Styling
In the following example, we put together a conventional buffering spinner, and position it at the center of the player:
Tailwind
The styling example above built with Tailwind:
Previous
<-
Captions
Next
Live Indicator
->