Registry Index

Search the catalog

Type to search items across every indexed registry, or pick a page.

ExampleReactregistry:exampleSelf-contained

Video Player Repeat

video-player-repeat-demo

A video player demo showing repeat playback

A demo of video-player

registry/8starlabs-ui/examples/video-player-repeat-demo.tsxcomponents/8starlabs-ui/examples/video-player-repeat-demo.tsx
28 lines
"use client";

import VideoRoot, {
  VideoControls,
  VideoFullscreenTrigger,
  VideoPipTrigger,
  VideoPlayTrigger,
  VideoProgressBar,
  VideoSoundControl,
  VideoViewport
} from "@/registry/8starlabs-ui/blocks/video-player";

export default function VideoPlayerRepeatDemo() {
  return (
    <VideoRoot className="rounded-lg" repeat>
      <VideoViewport src="https://vjs.zencdn.net/v/oceans.mp4" />

      <VideoControls className="flex items-center justify-between gap-4">
        <VideoPlayTrigger />
        <VideoSoundControl />
        <VideoProgressBar />
        <VideoPipTrigger />
        <VideoFullscreenTrigger />
      </VideoControls>
    </VideoRoot>
  );
}
@8starlabs-ui

More from @8starlabs-ui

A Base UI collapsible component

A Base UI separator component

A Stripe-style perspective error shake for form fields, with a declarative wrapper and an imperative hook

A status indicator component

A compact status history bar for showing service uptime across days or hours.

A styled input component

A styled label component

A Base UI tooltip component