InteractionKit

VideoPlayer

Custom video controls and unobscured YouTube and Vimeo embeds.

Available in useintkit@0.0.1 and later.

Direct video

Usage

video-player.tsx
import { VideoPlayer } from "useintkit";

<VideoPlayer
  src="/videos/example.mp4"
  title="A quiet scene"
  poster="/images/poster.jpg"
/>

YouTube

YouTube videos use the embedded player and its native controls.

youtube.tsx
import { VideoPlayer } from "useintkit";

<VideoPlayer
  provider="youtube"
  src="https://www.youtube.com/watch?v=RRFDgDeboqE"
  title="YouTube player demonstration"
/>

YouTube with custom controls

An experimental InteractionKit control bar below the unobscured YouTube player. YouTube branding and player behavior remain visible.

youtube-custom.tsx
import { VideoPlayer } from "useintkit";

<VideoPlayer
  provider="youtube"
  youtubeControls="custom"
  src="https://www.youtube.com/watch?v=RRFDgDeboqE"
  title="YouTube with InteractionKit controls"
/>

Vimeo

Vimeo videos also use their native embedded player.

vimeo.tsx
import { VideoPlayer } from "useintkit";

<VideoPlayer
  provider="vimeo"
  src="https://vimeo.com/863362136"
  title="Inside Vimeo Staff Picks"
/>

Vimeo with custom controls

An experimental control bar below Vimeo. Hiding Vimeo controls requires the video owner to have an eligible plan; otherwise both sets of controls may appear.

vimeo-custom.tsx
import { VideoPlayer } from "useintkit";

<VideoPlayer
  provider="vimeo"
  vimeoControls="custom"
  src="https://vimeo.com/863362136"
  title="Inside Vimeo Staff Picks with InteractionKit controls"
/>

Playback depends on the video's embedding permissions and availability.

Props

PropTypeDescription
srcstringRequired. Direct video URL or supported provider URL.
titlestringRequired accessible title for the video.
provider"video" | "youtube" | "vimeo"Defaults to "video".
youtubeControls"native" | "custom"Experimental custom YouTube controls below the embed; defaults to native.
vimeoControls"native" | "custom"Experimental custom Vimeo controls; requires an eligible video owner plan.
posterstringOptional poster image for direct video.
captionsobjectOptional default caption track for direct video.
classNamestringAdditional classes for the player wrapper.

Vimeo and YouTube use their own embedded controls by default. Custom bars stay outside the embed; Vimeo chromeless mode requires an eligible owner plan.