Rendyn

Component library

189 components

Product blocks

Video Player

Video Player composes a media controller and individual control elements.

Interactive exampleReact Tailwind CSS

Practical React example

Play a product video with a deliberate set of accessible media controls.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/video-player/index.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: media-chrome.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Play a product video with a deliberate set of accessible media controls

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import {
  VideoPlayer,
  VideoPlayerContent,
  VideoPlayerControlBar,
  VideoPlayerMuteButton,
  VideoPlayerPlayButton,
  VideoPlayerSeekBackwardButton,
  VideoPlayerSeekForwardButton,
  VideoPlayerTimeDisplay,
  VideoPlayerTimeRange,
  VideoPlayerVolumeRange,
} from "@/components/kibo-ui/video-player";

const Example = () => (
  <VideoPlayer className="overflow-hidden rounded-lg border">
    <VideoPlayerContent
      crossOrigin=""
      muted
      preload="auto"
      slot="media"
      src="https://stream.mux.com/DS00Spx1CV902MCtPj5WknGlR102V5HFkDe/high.mp4"
    />
    <VideoPlayerControlBar>
      <VideoPlayerPlayButton />
      <VideoPlayerSeekBackwardButton />
      <VideoPlayerSeekForwardButton />
      <VideoPlayerTimeRange />
      <VideoPlayerTimeDisplay showDuration />
      <VideoPlayerMuteButton />
      <VideoPlayerVolumeRange />
    </VideoPlayerControlBar>
  </VideoPlayer>
);

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Use the correct media slot and supplied source type, and include captions or transcript support through the underlying media element or provider.

Customization

media slot and controls
Place the video or supported media element in the controller’s media slot. Compose only the media controls you need and add captions through the media source.

Integration notes

  • The control surface does not host, transcode or authorize access to the video.
  • Test keyboard shortcuts, focus, playback errors and autoplay restrictions in target browsers.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP