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.tsx→ components/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 Stripe-style perspective error shake for form fields, with a declarative wrapper and an imperative hook
A compact status history bar for showing service uptime across days or hours.