Docs
Video Player

A video player component for playing videos

Installation

pnpm dlx shadcn@latest add https://devkit.kiron.dev/k/video-player

Usage

import { VideoPlayer } from "@/components/ui/video-player"
 
export function Component() {
  return (
    <div>
      <VideoPlayer
        src="https://youtu.be/L85CCntKiS8"
        poster="https://i.ytimg.com/vi/L85CCntKiS8/maxresdefault.jpg"
      />
    </div>
  )
}

Props

PropTypeDefaultDescription
srcstringThe URL of the video to play
posterstringThe URL of the video poster image