https://framer.com/m/VideoPro2-vfkv.js
Io / Enhancements / CustomVideoPlayer
CustomVideoPlayer
CustomVideoPlayer plays uploads, direct URLs, YouTube or Vimeo behind one set of controls you style yourself, with chapters and accessibility settings of its own.
Examples
Live specimens for every control the component exposes.
Setup
Four arrays cover the sources — uploaded files, direct URLs, YouTube ids and Vimeo ids — so one player can carry a playlist from more than one place. manualChapters adds a chapter list over the timeline.
Playback
showControls swaps between the styled controls and none at all. loop and autoPlay behave as they do natively, which means autoplay needs the track muted in most browsers.
controls on
controls off
looping
Appearance
The style groups cover the frame, the control bar, the play overlay and its glow. useCustomPlayButton replaces the built-in play affordance with your own.
default overlay
custom play button
autoplay
Props
The controls exposed on the instance panel.
Usage
Guidance carried over from the component definition.
Reach for CustomVideoPlayer
One player must handle uploads, YouTube and Vimeo alike.
The control bar has to match the site rather than the browser.
The video is long enough to need chapters.
The player must look the same whatever the source is.
Reach for something else
The video should scrub with the scroll — use ScrollVideoPlayer.
A plain embed would do — use the Video component.
The footage is decorative background; a player is too much.
Io — Enhancements
Every specimen above is a live component instance. Colour, type and radius resolve from the project theme tokens.