{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hls-media",
  "title": "HLS Media",
  "description": "Adaptive HLS video and audio elements that play a manifest through the same shells as a progressive file, filling the quality menu from the renditions the stream declares.",
  "dependencies": [
    "@videojs/react@10.3.0"
  ],
  "registryDependencies": [
    "litingyes/blocove/media-tracks"
  ],
  "files": [
    {
      "path": "src/registry/blocove/ui/media/hls-video.tsx",
      "content": "import type { HlsVideoProps } from '@videojs/react/media/hls-video'\nimport type { MediaTrack } from '@/components/blocove/media/tracks'\nimport { HlsVideo as HlsVideoJsMedia } from '@videojs/react/media/hls-video'\nimport { MediaTracks } from '@/components/blocove/media/tracks'\n\nexport interface HlsVideoMediaProps extends HlsVideoProps {\n  /** Text tracks rendered inside the element. */\n  tracks?: MediaTrack[]\n}\n\n/**\n * The adaptive HLS `<video>` element. It registers itself as the player's media\n * on mount like the progressive element does, so the same shells play a\n * manifest: the skin, the controls and the settings menu do not change when the\n * source becomes a stream, and the quality menu fills itself from the\n * renditions the manifest declares.\n */\nexport function HlsVideoMedia({\n  children,\n  playsInline = true,\n  preload = 'metadata',\n  tracks,\n  ...props\n}: HlsVideoMediaProps) {\n  return (\n    <HlsVideoJsMedia playsInline={playsInline} preload={preload} {...props}>\n      {tracks\n        ? <MediaTracks tracks={tracks} />\n        : null}\n      {children}\n    </HlsVideoJsMedia>\n  )\n}\n",
      "type": "registry:ui",
      "target": "components/blocove/media/hls-video.tsx"
    },
    {
      "path": "src/registry/blocove/ui/media/hls-audio.tsx",
      "content": "import type { HlsAudioProps } from '@videojs/react/media/hls-audio'\nimport type { MediaTrack } from '@/components/blocove/media/tracks'\nimport { HlsAudio as HlsAudioJsMedia } from '@videojs/react/media/hls-audio'\nimport { MediaTracks } from '@/components/blocove/media/tracks'\n\nexport interface HlsAudioMediaProps extends HlsAudioProps {\n  /** Text tracks rendered inside the element. */\n  tracks?: MediaTrack[]\n}\n\n/**\n * The adaptive HLS `<audio>` element. It plays the audio rendition of a stream\n * through the same audio shell as a progressive file, so an episode can move\n * from a static download to a manifest without touching the interface.\n */\nexport function HlsAudioMedia({\n  children,\n  preload = 'metadata',\n  tracks,\n  ...props\n}: HlsAudioMediaProps) {\n  return (\n    <HlsAudioJsMedia preload={preload} {...props}>\n      {tracks\n        ? <MediaTracks tracks={tracks} />\n        : null}\n      {children}\n    </HlsAudioJsMedia>\n  )\n}\n",
      "type": "registry:ui",
      "target": "components/blocove/media/hls-audio.tsx"
    }
  ],
  "categories": [
    "media"
  ],
  "type": "registry:ui"
}