Heimerle + Meule Logo
Heimerle + Meule

Video Player

An accessible video player built on Media Chrome with configurable playback controls.

Quick Start

Use Video Player to provide a fully featured media playback experience with built-in controls.

1<VideoPlayer
2src="/videos/sample.mp4"
3poster="/images/poster.jpg"
4className="aspect-video h-96 object-cover"
5/>

Default Player

The default configuration includes playback, timeline, volume, and fullscreen controls.

1<VideoPlayer
2src="/videos/sample.mp4"
3poster="/images/poster.jpg"
4/>

With Seek Controls

Display forward and backward seek buttons.

1<VideoPlayer
2src="/videos/sample.mp4"
3showSeekBackwardButton
4showSeekForwardButton
5seekOffset={10}
6/>

Compact Controls

Only display essential controls.

1<VideoPlayer
2src="/videos/sample.mp4"
3showTimeDisplay={false}
4showVolumeControl={false}
5/>

Volume Controls

Enable audio controls.

1<VideoPlayer
2src="/videos/sample.mp4"
3showVolumeControl
4/>

Autoplay

Videos can begin playback automatically.

1<VideoPlayer
2src="/videos/sample.mp4"
3autoPlay
4muted
5loop
6/>

Custom Styling

Customize the player and control bar appearance.

1<VideoPlayer
2src="/videos/sample.mp4"
3className="aspect-video overflow-hidden rounded-[20px] border"
4controlBarClassName="rounded-b-[20px]"
5/>

Display all available controls.

1<VideoPlayer
2src="/videos/sample.mp4"
3showSeekBackwardButton
4showSeekForwardButton
5seekOffset={10}
6/>

API Reference

VideoPlayer

Property

Type

Default

Description

srcstring-Source URL of the video.
posterstring-Poster image shown before playback begins.
autoPlaybooleanfalseAutomatically begins playback when loaded.
mutedbooleanfalseMutes audio playback.
loopbooleanfalseRestarts playback when the video ends.
showControlsbooleantrueDisplays the control bar.
showPlayButtonbooleantrueDisplays the play/pause button.
showSeekBackwardButtonbooleanfalseDisplays the seek backward button.
showSeekForwardButtonbooleanfalseDisplays the seek forward button.
seekOffsetnumber10Number of seconds to seek forward/backward.
showTimeRangebooleantrueDisplays the timeline control.
showTimeDisplaybooleantrueDisplays the current and total duration.
showVolumeControlbooleantrueDisplays the volume control.
showFullscreenButtonbooleantrueDisplays the fullscreen control.
controlBarClassNamestring-Additional classes applied to the control bar.
controllerClassNamestring-Additional classes applied to the MediaController.

Visual Reference

Configuration

Preview

Default
With Seek Controls