Bloc UIBloc UI

Video Player

Feature-rich HTML5 video player with custom controls, progress seeking, volume, playback rate, fullscreen, and CSS custom property theming.

$ npm install @bloc-ui/video-player

Basic Usage

Pass a video URL and optional poster image. All controls are built in.

0:00 / 0:00

Autoplay + Loop (Muted)

Autoplaying videos must be muted to comply with browser policies. Loop keeps them repeating.

0:00 / 0:00

Events

Listen to play, pause, ended, and timeUpdate events to react to playback state changes.

0:00 / 0:00
⏱ Time: 0:00📊 Progress: 0%