{
  "id": "task_libraries:video-player/react",
  "path": "/exapedia/react-video-player-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React video player libraries",
  "answer": [
    {
      "t": "text",
      "text": "React video player libraries embed a video player with playback controls in a React app. A player component either plays file URLs and streaming formats such as HLS or wraps the embed of a hosted service such as YouTube or Vimeo. These libraries let course platforms, media sites, and product pages play video inside their own interface."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React video player libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#remotion-player",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mux-player-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reactplayer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-youtube",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vidstack-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-lite-youtube-embed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#videojs-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#u-wave-react-vimeo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#mux-player-react",
          "label": [
            {
              "t": "text",
              "text": "@mux/mux-player-react"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among the dedicated video players in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F145"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "File URL input",
            "YouTube/Vimeo embeds"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#remotion-player",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mux-player-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reactplayer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-youtube",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vidstack-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-lite-youtube-embed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#videojs-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#u-wave-react-vimeo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "remotion-player",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/remotion-dev/remotion"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@remotion/player"
            },
            {
              "label": "Docs",
              "href": "https://www.remotion.dev/docs/player"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.remotion.dev/docs/player",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel-labs/json-render",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export default function Home() {\n  const [prompt, setPrompt] = useState(\"\");\n  const [isGenerating, setIsGenerating] = useState(false);\n  const [spec, setSpec] = useState<TimelineSpec | null>(null);\n  const [error, setError] = useState<string | null>(null);\n  const inputRef = useRef<HTMLInputElement>(null);\n  const playerRef = useRef<PlayerRef>(null);\n\n  const generate = useCallback(async () => {\n    if (!prompt.trim() || isGenerating) return;\n\n    setIsGenerating(true);\n    setError(null);\n    setSpec(null);\n\n    try {\n      const response = await fetch(\"/api/generate\", {\n        method: \"POST\",\n        headers: { \"Content-Type\": \"application/json\" },\n        body: JSON.stringify({ prompt }),\n      });\n\n      if (!response.ok) {\n        throw new Error(\"Generation failed\");\n      }\n\n      const reader = response.body?.getReader();\n      if (!reader) throw new Error(\"No response body\");\n\n      const decoder = new TextDecoder();\n      const compiler = createSpecStreamCompiler<TimelineSpec>();\n\n      while (true) {\n        const { done, value } = await reader.read();\n        if (done) break;\n\n        const chunk = decoder.decode(value, { stream: true });\n        const { result, newPatches } = compiler.push(chunk);\n\n        if (newPatches.length > 0) {\n          setSpec(result);\n        }\n      }\n\n      // Get final result (processes any remaining buffer)\n      const finalSpec = compiler.getResult();\n      setSpec(finalSpec);\n\n      // Final validation and auto-play\n      if (isSpecComplete(finalSpec)) {\n        // Auto-play after a short delay to ensure Player is mounted\n        setTimeout(() => {\n          playerRef.current?.play();\n        }, 100);\n      } else {\n        setError(\"Generated timeline is incomplete\");\n      }\n    } catch (err) {\n      setError(err instanceof Error ? err.message : \"Generation failed\");\n    } finally {\n      setIsGenerating(false);\n    }\n  }, [prompt, isGenerating]);\n\n  const handleSubmit = (e: React.FormEvent) => {\n    e.preventDefault();\n    generate();\n  };\n\n  const handleExampleClick = (examplePrompt: string) => {\n    setPrompt(examplePrompt);\n    setTimeout(() => inputRef.current?.focus(), 0);\n  };\n\n  const handleExport = useCallback(() => {\n    if (!spec) return;\n    const blob = new Blob([JSON.stringify(spec, null, 2)], {\n      type: \"application/json\",\n    });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement(\"a\");\n    a.href = url;\n    a.download = \"timeline.json\";\n    a.click();\n    URL.revokeObjectURL(url);\n  }, [spec]);\n\n  return (\n    <div className=\"min-h-screen\">\n      {/* Hero */}\n      <section className=\"max-w-5xl mx-auto px-6 pt-24 pb-16 text-center\">\n        <div className=\"text-xs font-mono text-muted-foreground mb-4\">\n          @json-render/remotion\n        </div>\n        <h1 className=\"text-5xl sm:text-6xl md:text-7xl font-bold tracking-tighter mb-6\">\n          AI &rarr; json-render &rarr; Video\n        </h1>\n        <p className=\"text-lg text-muted-foreground max-w-2xl mx-auto mb-12 leading-relaxed\">\n          Define a video catalog. Users prompt. AI outputs timeline JSON\n          constrained to your components. Remotion renders it.\n        </p>\n\n        {/* Demo */}\n        <div className=\"max-w-4xl mx-auto\">\n          {/* Prompt Input */}\n          <form onSubmit={handleSubmit} className=\"mb-4\">\n            <div className=\"border border-border rounded p-3 bg-background font-mono text-sm flex items-center gap-2\">\n              <span className=\"text-muted-foreground\">&gt;</span>\n              <input\n                ref={inputRef}\n                type=\"text\"\n                value={prompt}\n                onChange={(e) => setPrompt(e.target.value)}\n                placeholder=\"Describe the video you want to create...\"\n                className=\"flex-1 bg-transparent outline-none placeholder:text-muted-foreground/50\"\n                disabled={isGenerating}\n                maxLength={500}\n              />\n              {isGenerating ? (\n                <button\n                  type=\"button\"\n                  onClick={() => setIsGenerating(false)}\n                  className=\"w-7 h-7 rounded-full bg-primary text-primary-foreground flex items-center justify-center hover:bg-primary/90 transition-colors\"\n                >\n                  <svg\n                    width=\"12\"\n                    height=\"12\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"currentColor\"\n                  >\n                    <rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" />\n                  </svg>\n                </button>\n              ) : (\n                <button\n                  type=\"submit\"\n                  disabled={!prompt.trim()}\n                  className=\"w-7 h-7 rounded-full bg-primary text-primary-foreground flex items-center justify-center hover:bg-primary/90 transition-colors disabled:opacity-30\"\n                >\n                  <svg\n                    width=\"14\"\n                    height=\"14\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"2\"\n                  >\n                    <path d=\"M5 12h14M12 5l7 7-7 7\" />\n                  </svg>\n                </button>\n              )}\n            </div>\n          </form>\n\n          {/* Example prompts */}\n          <div className=\"flex flex-wrap gap-2 justify-center mb-6\">\n            {EXAMPLE_PROMPTS.map((examplePrompt) => (\n              <button\n                key={examplePrompt}\n                onClick={() => handleExampleClick(examplePrompt)}\n                className=\"text-xs px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:border-foreground/50 transition-colors\"\n              >\n                {examplePrompt}\n              </button>\n            ))}\n          </div>\n\n          {error && (\n            <div className=\"mb-4 p-3 bg-red-500/10 border border-red-500/20 rounded text-red-500 text-sm\">\n              {error}\n            </div>\n          )}\n\n          <div className=\"grid lg:grid-cols-2 gap-4\">\n            {/* JSON Panel */}\n            <div className=\"text-left\">\n              <div className=\"flex items-center gap-4 mb-2 h-6\">\n                <span className=\"text-xs font-mono text-muted-foreground\">\n                  json\n                </span>\n                {isGenerating && (\n                  <span className=\"text-xs text-muted-foreground animate-pulse\">\n                    generating...\n                  </span>\n                )}\n              </div>\n              <div className=\"border border-border rounded bg-background font-mono text-xs h-[28rem] overflow-auto relative group\">\n                {spec && (\n                  <div className=\"absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity\">\n                    <CopyButton text={JSON.stringify(spec, null, 2)} />\n                  </div>\n                )}\n                {spec ? (\n                  <CodeBlock code={JSON.stringify(spec, null, 2)} />\n                ) : isGenerating ? (\n                  <div className=\"p-4 text-muted-foreground/50 h-full flex items-center justify-center\">\n                    <div className=\"flex flex-col items-center gap-2\">\n                      <div className=\"flex gap-1\">\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce\" />\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                      </div>\n                      <span>Generating timeline...</span>\n                    </div>\n                  </div>\n                ) : (\n                  <div className=\"p-4 text-muted-foreground/50 h-full flex items-center justify-center\">\n                    Enter a prompt to generate a video timeline\n                  </div>\n                )}\n              </div>\n            </div>\n\n            {/* Video Preview Panel */}\n            <div>\n              <div className=\"flex items-center justify-between mb-2 h-6\">\n                <span className=\"text-xs font-mono text-muted-foreground\">\n                  preview\n                </span>\n                <div className=\"flex items-center gap-2\">\n                  {spec && isSpecComplete(spec) && (\n                    <button\n                      onClick={handleExport}\n                      className=\"text-xs px-2 py-1 rounded border border-border text-muted-foreground hover:text-foreground hover:border-foreground/50 transition-colors\"\n                      title=\"Export timeline JSON\"\n                    >\n                      Export\n                    </button>\n                  )}\n                </div>\n              </div>\n              <div\n                className=\"border border-border rounded bg-black h-[28rem] relative overflow-hidden\"\n                data-player-container\n              >\n                {spec && isSpecComplete(spec) ? (\n                  <Player\n                    ref={playerRef}\n                    component={Renderer}\n                    inputProps={{ spec }}\n                    durationInFrames={spec.composition.durationInFrames}\n                    fps={spec.composition.fps}\n                    compositionWidth={spec.composition.width}\n                    compositionHeight={spec.composition.height}\n                    style={{\n                      width: \"100%\",\n                      height: \"100%\",\n                    }}\n                    controls\n                    loop\n                  />\n                ) : (\n                  <div className=\"h-full flex items-center justify-center text-white/30 text-sm\">\n                    {isGenerating ? (\n                      <div className=\"flex flex-col items-center gap-2\">\n                        <div className=\"flex gap-1\">\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                        </div>\n                        <span>Generating timeline...</span>\n                      </div>\n                    ) : spec ? (\n                      <div className=\"flex flex-col items-center gap-2\">\n                        <div className=\"flex gap-1\">\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                        </div>\n                        <span>Building timeline...</span>\n                      </div>\n                    ) : (\n                      \"Enter a prompt to generate a video\"\n                    )}\n                  </div>\n                )}\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel-labs/json-render/blob/c926907855d95dde328264350ac5464b60be201d/examples/remotion/app/page.tsx#L163-L446",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40remotion/player%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Player } from \"@remotion/player\";\n\nfunction HelloVideo() {\n  return <div style={{ fontSize: 64 }}>Hello</div>;\n}\n\nexport default function App() {\n  return <Player component={HelloVideo} durationInFrames={90} fps={30}\n    compositionWidth={640} compositionHeight={360} controls />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@remotion/player@4.0.545/dist/cjs/Player.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "Player.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mux-player-react",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/muxinc/elements"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mux/mux-player-react"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/@mux/mux-player-react/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@mux/mux-player-react/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fastrepl/anarlog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function MobileFeatureVideo({\n  playbackId,\n  alt,\n  isActive,\n}: {\n  playbackId: string;\n  alt: string;\n  isActive: boolean;\n}) {\n  const playerRef = useRef<MuxPlayerRefAttributes>(null);\n  const thumbnailUrl = `https://image.mux.com/${playbackId}/thumbnail.jpg?width=1920&height=1080&fit_mode=smartcrop`;\n\n  useEffect(() => {\n    const player = playerRef.current;\n    if (!player) return;\n\n    if (isActive) {\n      player.play()?.catch(() => {\n        // Autoplay blocked or player not ready - fail silently\n      });\n    } else {\n      player.pause();\n      player.currentTime = 0;\n    }\n  }, [isActive]);\n\n  return (\n    <div className=\"relative h-full w-full\">\n      <img\n        src={thumbnailUrl}\n        alt={alt}\n        className={cn([\n          \"absolute inset-0 h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-0\" : \"opacity-100\",\n        ])}\n      />\n      <MuxPlayer\n        ref={playerRef}\n        playbackId={playbackId}\n        muted\n        loop\n        playsInline\n        maxResolution=\"1080p\"\n        minResolution=\"720p\"\n        className={cn([\n          \"h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-100\" : \"opacity-0\",\n        ])}\n        style={\n          {\n            \"--controls\": \"none\",\n          } as React.CSSProperties & { [key: `--${string}`]: string }\n        }\n      />\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fastrepl/anarlog/blob/6ac06c35e931e6d87466252673d9a374d2b62b23/apps/web/src/routes/_view/index.tsx#L1265-L1321",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40mux/mux-player-react%20for%20video%20playback%2C%20player%20controls%20and%20preview%20integration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import MuxPlayer from \"@mux/mux-player-react\";\n\nexport default function App() {\n  return <MuxPlayer playbackId=\"DS00Spx1CV902MCtPj5WknGlR102V5HFkDe\" />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/muxinc/elements/blob/main/packages/mux-player-react/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "reactplayer",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cookpete/react-player"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-player"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/react-player/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-player/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import ReactPlayer from \"react-player\";\n\nexport default function App() {\n  return <ReactPlayer src=\"https://www.youtube.com/watch?v=LXb3EKWsInQ\" controls />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-player/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-player%20for%20video%20playback%2C%20player%20controls%20and%20preview%20integration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-youtube",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tjallingt/react-youtube"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-youtube"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/react-youtube/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-youtube/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/prevwong/craft.js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export const Video = (props: any) => {\n  const { enabled } = useEditor((state) => ({\n    enabled: state.options.enabled,\n  }));\n  const {\n    connectors: { connect },\n  } = useNode((node) => ({\n    selected: node.events.selected,\n  }));\n\n  const { videoId } = props;\n\n  return (\n    <YoutubeDiv\n      ref={(dom) => {\n        connect(dom);\n      }}\n      $enabled={enabled}\n    >\n      <YouTube\n        videoId={videoId}\n        opts={{\n          width: '100%',\n          height: '100%',\n        }}\n      />\n    </YoutubeDiv>\n  );\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/prevwong/craft.js/blob/23f44f3208ebf78d1632ec4aa7094001f513eb41/examples/landing/components/selectors/Video/index.tsx#L21-L49",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-youtube%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import YouTube from \"react-youtube\";\n\nexport default function App() {\n  return <YouTube videoId=\"2g811Eo7K8U\" />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-youtube/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "vidstack-react",
          "name": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vidstack/player"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@vidstack/react"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/@vidstack/react/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@vidstack/react/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/LibreChat-AI/docs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export const Video = ({\n  src,\n  poster,\n  aspectRatio,\n  className,\n  gifStyle = false,\n  autoPlay = false,\n  title,\n  type,\n}: {\n  src: string\n  poster?: string\n  /** Ratio in `width/height` form, e.g. `\"16/9\"`. */\n  aspectRatio?: string\n  /** Muted, looping, controls-free autoplay (ambient/gif-like). */\n  gifStyle?: boolean\n  /** Muted autoplay that keeps player controls so motion can be paused, scrubbed, and replayed. */\n  autoPlay?: boolean\n  className?: string\n  title?: string\n  /** Explicit MIME type, e.g. `\"video/mp4\"`. Needed for extensionless URLs. */\n  type?: string\n}) => {\n  const [panelDismissed, setPanelDismissed] = useState(false)\n  const mediaPlayerRef = useRef<MediaPlayerInstance>(null)\n  const remote = useMediaRemote(mediaPlayerRef)\n  const { duration } = useMediaStore(mediaPlayerRef)\n  const durationString = duration\n    ? `${Math.floor(duration / 60)}:${Math.floor(duration % 60)} min`\n    : null\n\n  // Vidstack infers the provider from a string src's file extension. Extensionless\n  // URLs (e.g. GitHub asset links) resolve no provider, so pass an explicit MIME\n  // type: honor an override, keep recognized extensions as plain strings, and\n  // default the rest to mp4.\n  const source = (\n    type === undefined\n      ? /\\.(mp4|webm|ogg|ogv|mov|m4v|m3u8|mpd)(\\?|#|$)/i.test(src)\n        ? src\n        : { src, type: 'video/mp4' }\n      : { src, type }\n  ) as ComponentProps<typeof MediaPlayer>['src']\n\n  // gifStyle and autoPlay both start muted playback eagerly. gifStyle loops with\n  // no controls (ambient), while autoPlay keeps controls so users can pause,\n  // scrub, and replay.\n  const isAutoplay = gifStyle || autoPlay\n\n  return (\n    <MediaPlayer\n      ref={mediaPlayerRef}\n      src={source}\n      controls={!gifStyle && (autoPlay || panelDismissed)}\n      autoPlay={isAutoplay}\n      muted={isAutoplay}\n      loop={gifStyle}\n      load={isAutoplay ? 'eager' : 'custom'}\n      playsInline={isAutoplay}\n      aspectRatio={aspectRatio}\n      className={cn(\n        'my-4 overflow-hidden shadow-lg ring-1 ring-slate-700 bg-cover object-cover',\n        className,\n      )}\n    >\n      {gifStyle ? (\n        // Capture mouse events, they broke scrolling on iOS\n        <div className=\"absolute inset-0 z-10\" />\n      ) : autoPlay || panelDismissed ? null : (\n        // Overlay with play button and poster image\n        <div\n          role=\"button\"\n          tabIndex={0}\n          aria-label={title ? `Play ${title}` : 'Play video'}\n          className=\"group cursor-pointer absolute inset-0 z-10 flex flex-col justify-center items-center bg-cover\"\n          style={{\n            backgroundImage: poster ? `url(${poster})` : undefined,\n          }}\n          onMouseEnter={() => {\n            remote.startLoading()\n          }}\n          onClick={() => {\n            remote.play()\n            setPanelDismissed(true)\n          }}\n          onKeyDown={(e) => {\n            if (e.key === 'Enter' || e.key === ' ') {\n              e.preventDefault()\n              remote.play()\n              setPanelDismissed(true)\n            }\n          }}\n        >\n          <div className=\"p-3 md:p-6 rounded-full bg-black/75 group-hover:ring-8 ring-black/20 hover:bg-black/90 transition flex\">\n            <Play className=\"size-6 text-white\" />\n          </div>\n          <div className=\"mt-3 md:mt-6 md:opacity-0 group-hover:opacity-100 transition-opacity duration-300\">\n            <span className=\"flex gap-2 text-xs md:text-sm font-semibold bg-black/90 text-white py-1 px-3 rounded-full\">\n              {title && <span>{title}</span>}\n              {durationString && <span className=\"text-white/70\">{durationString}</span>}\n            </span>\n          </div>\n        </div>\n      )}\n      <MediaProvider />\n    </MediaPlayer>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/LibreChat-AI/docs/blob/421720dede84f185b0614a487a3a6753e45068eb/components/Video.tsx#L15-L121",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40vidstack/react%20for%20video%20playback%2C%20player%20controls%20and%20preview%20integration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import \"@vidstack/react/player/styles/default/theme.css\";\nimport \"@vidstack/react/player/styles/default/layouts/video.css\";\nimport { MediaPlayer, MediaProvider } from \"@vidstack/react\";\nimport { DefaultVideoLayout, defaultLayoutIcons } from \"@vidstack/react/player/layouts/default\";\n\nexport default function App() {\n  return (\n    <MediaPlayer src=\"https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4\">\n      <MediaProvider />\n      <DefaultVideoLayout icons={defaultLayoutIcons} />\n    </MediaPlayer>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@vidstack/react@1.15.7/types/vidstack-react.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "player.tsx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-lite-youtube-embed",
          "name": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ibrahimcesar/react-lite-youtube-embed"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-lite-youtube-embed"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/react-lite-youtube-embed/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F212"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-lite-youtube-embed/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ethereum/ethereum-org-website",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const YouTube = ({\n  id,\n  start = \"0\",\n  title = \"YouTube\",\n  portrait,\n  className,\n  ...props\n}: YouTubeProps) => {\n  const params = new URLSearchParams()\n  ;+start > 0 && params.set(\"start\", start)\n  return (\n    <figure className={cn(portrait && \"aspect-9/16 max-h-105\", className)}>\n      <LiteYouTubeEmbed\n        aspectHeight={portrait ? 16 : 9}\n        aspectWidth={portrait ? 9 : 16}\n        id={id}\n        title={title}\n        params={params.toString()}\n        noCookie\n        {...props}\n      />\n    </figure>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ethereum/ethereum-org-website/blob/afad4e9f717bfd1feffa2e5e25f06ee5907d5315/src/components/YouTube.tsx#L29-L52",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-lite-youtube-embed%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import LiteYouTubeEmbed from 'react-lite-youtube-embed';\nimport 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';\n\nexport default function App() {\n  return (\n    <LiteYouTubeEmbed\n      id=\"dQw4w9WgXcQ\"\n      title=\"Rick Astley - Never Gonna Give You Up\"\n    />\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-lite-youtube-embed/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "videojs-react",
          "name": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/videojs/video.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@videojs/react"
            },
            {
              "label": "Docs",
              "href": "https://videojs.org/docs/framework/react/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://videojs.org/docs/framework/react/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import '@videojs/react/video/skin.css';\nimport { VideoPlayer, VideoSkin, Video } from '@videojs/react/video';\n\nexport default function Page() {\n  return (\n    <VideoPlayer>\n      <VideoSkin style={{ width: '100%', aspectRatio: '16 / 9' }}>\n        <Video src={\"https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4\"} playsInline />\n      </VideoSkin>\n    </VideoPlayer>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://videojs.org/docs/framework/react/",
                  "label": [
                    {
                      "t": "text",
                      "text": "page.tsx"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40videojs/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "u-wave-react-vimeo",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/u-wave/react-vimeo"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@u-wave/react-vimeo"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/@u-wave/react-vimeo/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@u-wave/react-vimeo/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Vimeo from \"@u-wave/react-vimeo\";\n\nexport default function App() {\n  return <Vimeo video=\"https://vimeo.com/76979871\" />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@u-wave/react-vimeo/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40u-wave/react-vimeo%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React video player library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#reactplayer",
          "label": [
            {
              "t": "text",
              "text": "react-player"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits one component that plays file URLs and hosted video. "
        },
        {
          "t": "link",
          "href": "#mux-player-react",
          "label": [
            {
              "t": "text",
              "text": "@mux/mux-player-react"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits video hosted on Mux with playback analytics. "
        },
        {
          "t": "link",
          "href": "#vidstack-react",
          "label": [
            {
              "t": "text",
              "text": "@vidstack/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits custom players built from components and layouts."
        }
      ]
    },
    {
      "q": "How do I embed YouTube in React?",
      "a": [
        {
          "t": "link",
          "href": "#react-youtube",
          "label": [
            {
              "t": "text",
              "text": "react-youtube"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides a YouTube player component for React. "
        },
        {
          "t": "link",
          "href": "#react-lite-youtube-embed",
          "label": [
            {
              "t": "text",
              "text": "react-lite-youtube-embed"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides a lighter YouTube embed that is private by default."
        }
      ]
    },
    {
      "q": "What is react-player?",
      "a": [
        {
          "t": "link",
          "href": "#reactplayer",
          "label": [
            {
              "t": "text",
              "text": "react-player"
            }
          ]
        },
        {
          "t": "text",
          "text": " plays file URLs, YouTube, Vimeo, and Mux video through one React component. Its light option loads the player after a thumbnail click."
        }
      ]
    },
    {
      "q": "What is Mux Player?",
      "a": [
        {
          "t": "link",
          "href": "#mux-player-react",
          "label": [
            {
              "t": "text",
              "text": "@mux/mux-player-react"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides a React video player built on Mux Player and Media Chrome. It sends video and viewer metadata to Mux Data."
        }
      ]
    },
    {
      "q": "Is Vidstack still maintained?",
      "a": [
        {
          "t": "link",
          "href": "#vidstack-react",
          "label": [
            {
              "t": "text",
              "text": "@vidstack/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " receives security fixes only. Feature development has moved to Video.js."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @mux/mux-player-react",
      "display": "Mux Player React",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @mux/mux-player-react",
      "display": "12.3M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @mux/mux-player-react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @mux/mux-player-react",
      "display": "3.14.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @mux/mux-player-react",
      "display": "v3.14.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @mux/mux-player-react",
      "display": "363",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "HLS playback, @mux/mux-player-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Player controls, @mux/mux-player-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Text tracks, @mux/mux-player-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Imperative API, @mux/mux-player-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, @mux/mux-player-react",
      "display": "npm install @mux/mux-player-react",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, @mux/mux-player-react",
      "display": "Provides a React video player built on Mux Player and Media Chrome.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @mux/mux-player-react",
      "display": "Defers loading until in view",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @mux/mux-player-react",
      "display": "Use the lazy entry point with loading set to viewport.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, @mux/mux-player-react",
      "display": "Attaches playback analytics metadata",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, @mux/mux-player-react",
      "display": "Pass video and viewer metadata to Mux Data.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, @mux/mux-player-react",
      "display": "Analytics cookies need explicit control",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, @mux/mux-player-react",
      "display": "Set disableCookies when Mux Data must avoid cookies.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, @mux/mux-player-react",
      "display": "Resolution caps remove higher renditions",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, @mux/mux-player-react",
      "display": "Use maxAutoResolution when manual higher-quality selection should remain available.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, @mux/mux-player-react",
      "display": "import MuxPlayer from '@mux/mux-player-react/lazy';\n\n<MuxPlayer\n  loading=\"viewport\"\n  playbackId=\"DS00Spx1CV902MCtPj5WknGlR102V5HFkDe\"\n  metadata={{\n    video_id: 'video-id-123456',\n    video_title: 'Bick Buck Bunny',\n    viewer_user_id: 'user-id-bc-789',\n  }}\n/>;\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, @mux/mux-player-react",
      "display": "function MobileFeatureVideo({\n  playbackId,\n  alt,\n  isActive,\n}: {\n  playbackId: string;\n  alt: string;\n  isActive: boolean;\n}) {\n  const playerRef = useRef<MuxPlayerRefAttributes>(null);\n  const thumbnailUrl = `https://image.mux.com/${playbackId}/thumbnail.jpg?width=1920&height=1080&fit_mode=smartcrop`;\n\n  useEffect(() => {\n    const player = playerRef.current;\n    if (!player) return;\n\n    if (isActive) {\n      player.play()?.catch(() => {\n        // Autoplay blocked or player not ready - fail silently\n      });\n    } else {\n      player.pause();\n      player.currentTime = 0;\n    }\n  }, [isActive]);\n\n  return (\n    <div className=\"relative h-full w-full\">\n      <img\n        src={thumbnailUrl}\n        alt={alt}\n        className={cn([\n          \"absolute inset-0 h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-0\" : \"opacity-100\",\n        ])}\n      />\n      <MuxPlayer\n        ref={playerRef}\n        playbackId={playbackId}\n        muted\n        loop\n        playsInline\n        maxResolution=\"1080p\"\n        minResolution=\"720p\"\n        className={cn([\n          \"h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-100\" : \"opacity-0\",\n        ])}\n        style={\n          {\n            \"--controls\": \"none\",\n          } as React.CSSProperties & { [key: `--${string}`]: string }\n        }\n      />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, @mux/mux-player-react",
      "display": "index.tsx · MobileFeatureVideo()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, @mux/mux-player-react",
      "display": "fastrepl/anarlog",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, fastrepl/anarlog",
      "display": "9.9K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, fastrepl/anarlog",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Library name, react-player",
      "display": "ReactPlayer",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, react-player",
      "display": "11.8M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, react-player",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, react-player",
      "display": "3.4.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, react-player",
      "display": "v3.4.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, react-player",
      "display": "10.3K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "HLS playback, react-player",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Player controls, react-player",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Text tracks, react-player",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Imperative API, react-player",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, react-player",
      "display": "npm install react-player",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, react-player",
      "display": "Plays file URLs and hosted video through one React component.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, react-player",
      "display": "Plays multiple video providers",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, react-player",
      "display": "Use one component for file URLs, YouTube, Vimeo, and Mux.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, react-player",
      "display": "Defers playback behind thumbnails",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, react-player",
      "display": "Use light to load the player after a thumbnail click.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, react-player",
      "display": "v2 integrations need migration",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, react-player",
      "display": "Update legacy integrations before switching to the v3 architecture.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, react-player",
      "display": "Some thumbnails need explicit URLs",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, react-player",
      "display": "Provide light with an image URL for unsupported thumbnail sources.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, react-player",
      "display": "import ReactPlayer from \"react-player\";\nimport {\n  MediaController,\n  MediaControlBar,\n  MediaTimeRange,\n  MediaTimeDisplay,\n  MediaVolumeRange,\n  MediaPlaybackRateButton,\n  MediaPlayButton,\n  MediaSeekBackwardButton,\n  MediaSeekForwardButton,\n  MediaMuteButton,\n  MediaFullscreenButton,\n} from \"media-chrome/react\";\n\nexport default function Player() {\n  return (\n    <MediaController\n      style={{\n        width: \"100%\",\n        aspectRatio: \"16/9\",\n      }}\n    >\n      <ReactPlayer\n        slot=\"media\"\n        src=\"https://stream.mux.com/maVbJv2GSYNRgS02kPXOOGdJMWGU1mkA019ZUjYE7VU7k\"\n        controls={false}\n        style={{\n          width: \"100%\",\n          height: \"100%\",\n          \"--controls\": \"none\",\n        }}\n      ></ReactPlayer>\n      <MediaControlBar>\n        <MediaPlayButton />\n        <MediaSeekBackwardButton seekOffset={10} />\n        <MediaSeekForwardButton seekOffset={10} />\n        <MediaTimeRange />\n        <MediaTimeDisplay showDuration />\n        <MediaMuteButton />\n        <MediaVolumeRange />\n        <MediaPlaybackRateButton />\n        <MediaFullscreenButton />\n      </MediaControlBar>\n    </MediaController>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, react-player",
      "display": "const ReactPlayerWrapper = ({\n  controls = true,\n  isPlaying,\n  thumbnailUrl,\n  videoUrl,\n}: VideoPlayerProps) => (\n  <ReactPlayer\n    className='react-player'\n    config={{ file: { attributes: { poster: thumbnailUrl } } }}\n    controls={controls}\n    height='100%'\n    playing={isPlaying}\n    url={videoUrl}\n    width='100%'\n  />\n);\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, react-player",
      "display": "ReactPlayerWrapper.tsx · ReactPlayerWrapper()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, react-player",
      "display": "GetStream/stream-chat-react",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, GetStream/stream-chat-react",
      "display": "845",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, GetStream/stream-chat-react",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "Library name, @vidstack/react",
      "display": "Vidstack React",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, @vidstack/react",
      "display": "2.3M",
      "asOf": "2026-11-15"
    },
    "F55": {
      "label": "License, @vidstack/react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, @vidstack/react",
      "display": "1.15.7",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, @vidstack/react",
      "display": "v1.15.7",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, @vidstack/react",
      "display": "3.7K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "HLS playback, @vidstack/react",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Player controls, @vidstack/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Text tracks, @vidstack/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Imperative API, @vidstack/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, @vidstack/react",
      "display": "npm install @vidstack/react",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, @vidstack/react",
      "display": "Builds React video and audio players with reusable components and layouts.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @vidstack/react",
      "display": "Supports ready-made or custom layouts",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @vidstack/react",
      "display": "Start with a layout or compose custom player controls.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, @vidstack/react",
      "display": "Defers media loading until visible",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, @vidstack/react",
      "display": "Use the visible strategy for players below the fold.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @vidstack/react",
      "display": "Receives security fixes only",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @vidstack/react",
      "display": "Plan migration; feature development has moved to Video.js.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, @vidstack/react",
      "display": "Local HLS needs another dependency",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, @vidstack/react",
      "display": "Install hls.js when loading the HLS provider locally.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, @vidstack/react",
      "display": "import './player.css';\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport {\n  isHLSProvider,\n  MediaPlayer,\n  MediaProvider,\n  Poster,\n  Track,\n  type MediaCanPlayDetail,\n  type MediaCanPlayEvent,\n  type MediaPlayerInstance,\n  type MediaProviderAdapter,\n  type MediaProviderChangeEvent,\n} from '@vidstack/react';\nimport {\n  DefaultAudioLayout,\n  defaultLayoutIcons,\n  DefaultVideoLayout,\n} from '@vidstack/react/player/layouts/default';\n\nimport { textTracks } from './tracks';\n\nexport function Player() {\n  let player = useRef<MediaPlayerInstance>(null),\n    [src, setSrc] = useState('');\n\n  useEffect(() => {\n    // Initialize src.\n    changeSource('audio');\n\n    // Subscribe to state updates.\n    return player.current!.subscribe(({ paused, viewType }) => {\n      // console.log('is paused?', '->', paused);\n      // console.log('is audio view?', '->', viewType === 'audio');\n    });\n  }, []);\n\n  function onProviderChange(\n    provider: MediaProviderAdapter | null,\n    nativeEvent: MediaProviderChangeEvent,\n  ) {\n    // We can configure provider's here.\n    if (isHLSProvider(provider)) {\n      provider.config = {};\n    }\n  }\n\n  // We can listen for the `can-play` event to be notified when the player is ready.\n  function onCanPlay(detail: MediaCanPlayDetail, nativeEvent: MediaCanPlayEvent) {\n    // ...\n  }\n\n  function changeSource(type: string) {\n    switch (type) {\n      case 'audio':\n        setSrc('https://files.vidstack.io/sprite-fight/audio.mp3');\n        break;\n      case 'video':\n        setSrc('https://files.vidstack.io/sprite-fight/720p.mp4');\n        break;\n      case 'hls':\n        setSrc('https://files.vidstack.io/sprite-fight/hls/stream.m3u8');\n        break;\n      case 'youtube':\n        setSrc('youtube/_cMxraX_5RE');\n        break;\n      case 'vimeo':\n        setSrc('vimeo/640499893');\n        break;\n    }\n  }\n\n  return (\n    <>\n      <MediaPlayer\n        className=\"player\"\n        title=\"Sprite Fight\"\n        src={src}\n        crossOrigin\n        playsInline\n        onProviderChange={onProviderChange}\n        onCanPlay={onCanPlay}\n        ref={player}\n      >\n        <MediaProvider>\n          <Poster\n            className=\"vds-poster\"\n            src=\"https://files.vidstack.io/sprite-fight/poster.webp\"\n            alt=\"Girl walks into campfire with gnomes surrounding her friend ready for their next meal!\"\n          />\n          {textTracks.map((track) => (\n            <Track {...track} key={track.src} />\n          ))}\n        </MediaProvider>\n\n        {/* Layouts */}\n        <DefaultAudioLayout icons={defaultLayoutIcons} />\n        <DefaultVideoLayout\n          icons={defaultLayoutIcons}\n          thumbnails=\"https://files.vidstack.io/sprite-fight/thumbnails.vtt\"\n        />\n      </MediaPlayer>\n\n      <div className=\"src-buttons\">\n        <button onClick={() => changeSource('audio')}>Audio</button>\n        <button onClick={() => changeSource('video')}>Video</button>\n        <button onClick={() => changeSource('hls')}>HLS</button>\n        <button onClick={() => changeSource('youtube')}>YouTube</button>\n        <button onClick={() => changeSource('vimeo')}>Vimeo</button>\n      </div>\n    </>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, @vidstack/react",
      "display": "export const Video = ({\n  src,\n  poster,\n  aspectRatio,\n  className,\n  gifStyle = false,\n  autoPlay = false,\n  title,\n  type,\n}: {\n  src: string\n  poster?: string\n  /** Ratio in `width/height` form, e.g. `\"16/9\"`. */\n  aspectRatio?: string\n  /** Muted, looping, controls-free autoplay (ambient/gif-like). */\n  gifStyle?: boolean\n  /** Muted autoplay that keeps player controls so motion can be paused, scrubbed, and replayed. */\n  autoPlay?: boolean\n  className?: string\n  title?: string\n  /** Explicit MIME type, e.g. `\"video/mp4\"`. Needed for extensionless URLs. */\n  type?: string\n}) => {\n  const [panelDismissed, setPanelDismissed] = useState(false)\n  const mediaPlayerRef = useRef<MediaPlayerInstance>(null)\n  const remote = useMediaRemote(mediaPlayerRef)\n  const { duration } = useMediaStore(mediaPlayerRef)\n  const durationString = duration\n    ? `${Math.floor(duration / 60)}:${Math.floor(duration % 60)} min`\n    : null\n\n  // Vidstack infers the provider from a string src's file extension. Extensionless\n  // URLs (e.g. GitHub asset links) resolve no provider, so pass an explicit MIME\n  // type: honor an override, keep recognized extensions as plain strings, and\n  // default the rest to mp4.\n  const source = (\n    type === undefined\n      ? /\\.(mp4|webm|ogg|ogv|mov|m4v|m3u8|mpd)(\\?|#|$)/i.test(src)\n        ? src\n        : { src, type: 'video/mp4' }\n      : { src, type }\n  ) as ComponentProps<typeof MediaPlayer>['src']\n\n  // gifStyle and autoPlay both start muted playback eagerly. gifStyle loops with\n  // no controls (ambient), while autoPlay keeps controls so users can pause,\n  // scrub, and replay.\n  const isAutoplay = gifStyle || autoPlay\n\n  return (\n    <MediaPlayer\n      ref={mediaPlayerRef}\n      src={source}\n      controls={!gifStyle && (autoPlay || panelDismissed)}\n      autoPlay={isAutoplay}\n      muted={isAutoplay}\n      loop={gifStyle}\n      load={isAutoplay ? 'eager' : 'custom'}\n      playsInline={isAutoplay}\n      aspectRatio={aspectRatio}\n      className={cn(\n        'my-4 overflow-hidden shadow-lg ring-1 ring-slate-700 bg-cover object-cover',\n        className,\n      )}\n    >\n      {gifStyle ? (\n        // Capture mouse events, they broke scrolling on iOS\n        <div className=\"absolute inset-0 z-10\" />\n      ) : autoPlay || panelDismissed ? null : (\n        // Overlay with play button and poster image\n        <div\n          role=\"button\"\n          tabIndex={0}\n          aria-label={title ? `Play ${title}` : 'Play video'}\n          className=\"group cursor-pointer absolute inset-0 z-10 flex flex-col justify-center items-center bg-cover\"\n          style={{\n            backgroundImage: poster ? `url(${poster})` : undefined,\n          }}\n          onMouseEnter={() => {\n            remote.startLoading()\n          }}\n          onClick={() => {\n            remote.play()\n            setPanelDismissed(true)\n          }}\n          onKeyDown={(e) => {\n            if (e.key === 'Enter' || e.key === ' ') {\n              e.preventDefault()\n              remote.play()\n              setPanelDismissed(true)\n            }\n          }}\n        >\n          <div className=\"p-3 md:p-6 rounded-full bg-black/75 group-hover:ring-8 ring-black/20 hover:bg-black/90 transition flex\">\n            <Play className=\"size-6 text-white\" />\n          </div>\n          <div className=\"mt-3 md:mt-6 md:opacity-0 group-hover:opacity-100 transition-opacity duration-300\">\n            <span className=\"flex gap-2 text-xs md:text-sm font-semibold bg-black/90 text-white py-1 px-3 rounded-full\">\n              {title && <span>{title}</span>}\n              {durationString && <span className=\"text-white/70\">{durationString}</span>}\n            </span>\n          </div>\n        </div>\n      )}\n      <MediaProvider />\n    </MediaPlayer>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, @vidstack/react",
      "display": "Video.tsx · Video()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, @vidstack/react",
      "display": "LibreChat-AI/docs",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, LibreChat-AI/docs",
      "display": "697",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, LibreChat-AI/docs",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Library name, plyr-react",
      "display": "Plyr React",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, plyr-react",
      "display": "323.7K",
      "asOf": "2026-11-15"
    },
    "F81": {
      "label": "License, plyr-react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, plyr-react",
      "display": "6.0.0",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, plyr-react",
      "display": "v6.0.0",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, plyr-react",
      "display": "523",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "HLS playback, plyr-react",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Player controls, plyr-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Imperative API, plyr-react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, plyr-react",
      "display": "npm install plyr-react",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, plyr-react",
      "display": "Wraps Plyr for React playback of HTML5 media, YouTube, and Vimeo.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, plyr-react",
      "display": "Customizes controls through options",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, plyr-react",
      "display": "Choose controls, settings menus, and event listeners.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, plyr-react",
      "display": "Exposes the underlying player",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, plyr-react",
      "display": "Use the forwarded ref to control playback, volume, and fullscreen.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, plyr-react",
      "display": "Adaptive streaming needs integration",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, plyr-react",
      "display": "Connect HLS.js for adaptive bitrate streaming.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, plyr-react",
      "display": "v6 uses named component imports",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, plyr-react",
      "display": "Import Plyr by name when updating older default-import integrations.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, plyr-react",
      "display": "import \"plyr-react/plyr.css\"\n\n// src/App.jsx\n\nimport { useRef } from \"react\";\nimport { Plyr } from \"plyr-react\";\n\n// The source config for a YouTube video\nconst youtubeVideoSrc = {\n  type: \"video\",\n  sources: [\n    {\n      src: \"aqz-KE-bpKQ\", // YouTube video ID or URL\n      provider: \"youtube\",\n    },\n  ],\n};\n\n/**\n * Root React component that renders a heading and a Plyr video player configured with `youtubeVideoSrc`.\n *\n * @returns {JSX.Element} The app UI containing a header and the Plyr player.\n */\nfunction App() {\n  const ref = useRef(null);\n\n  return (\n    <div className=\"App\">\n      <h1>Plyr React in GitHub Codespaces</h1>\n      <Plyr ref={ref} source={youtubeVideoSrc} />\n    </div>\n  );\n}\n\nexport default App;\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Playing URLs from multiple providers",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose react-player",
      "display": "one component across common video providers",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "playing URLs from multiple providers",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider plyr-react",
      "display": "configurable player controls matter most",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Configuring player controls",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose plyr-react",
      "display": "control and settings options",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "configuring player controls",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider react-player",
      "display": "broader provider URL handling is the priority",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Deferring Mux player loading",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose @mux/mux-player-react",
      "display": "viewport-triggered lazy loading",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "deferring Mux player loading",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider react-player",
      "display": "one component must accept several hosted video providers",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Page introduction",
      "display": "React video player libraries let web developers embed video playback in interfaces.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Which React player can handle several hosted providers?",
      "display": "ReactPlayer lists file paths, HLS, DASH, YouTube, Vimeo, Wistia, and Mux.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Can an older ReactPlayer integration upgrade unchanged?",
      "display": "ReactPlayer v3 changes the architecture and is not backwards compatible with v2.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Does ReactPlayer light mode always find a thumbnail?",
      "display": "Automatic thumbnails exclude some providers and file URLs; an explicit image URL can be supplied.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does ReactPlayer light mode always find a thumbnail?",
      "display": "The light prop can use an image URL instead of automatic lookup.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Do ReactPlayer controls look identical for every provider?",
      "display": "Native controls follow the browser or hosted player and can look different.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Is Vidstack receiving new features?",
      "display": "Its own maintenance notice limits updates to priority security patches, with feature work focused on Video.js.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: How does Vidstack identify an extensionless HLS source?",
      "display": "Supply an HLS MIME type hint when the source URL has no file extension.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Vidstack load media only when the player becomes visible?",
      "display": "The visible loading strategy delays media loading until the player enters the visual viewport.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does Plyr React handle HLS without integration work?",
      "display": "Its streaming support is described as integration with libraries such as HLS.js.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: How can application code control a Plyr React instance?",
      "display": "A forwarded ref exposes the Plyr instance for playback, volume, and fullscreen control.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How can application code control a Plyr React instance?",
      "display": "The current v6 source exports the component as a named Plyr export.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How can Mux Player delay loading below the fold?",
      "display": "Use the lazy entry point and the viewport loading mode shown in its own workflow.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does maxResolution preserve higher qualities for manual selection?",
      "display": "maxResolution excludes higher-resolution renditions from the server playlist; maxAutoResolution preserves manual selection.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How can Mux Data cookies be disabled?",
      "display": "The disableCookies prop disables cookies used by Mux Data.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, @remotion/player",
      "display": "@remotion/player",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, @remotion/player",
      "display": "13.2M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, @remotion/player",
      "display": "Remotion License",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, @remotion/player",
      "display": "4.0.545",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, @remotion/player",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, @remotion/player",
      "display": "npm install @remotion/player@4.0.545",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, @remotion/player",
      "display": "import { Player } from \"@remotion/player\";\n\nfunction HelloVideo() {\n  return <div style={{ fontSize: 64 }}>Hello</div>;\n}\n\nexport default function App() {\n  return <Player component={HelloVideo} durationInFrames={90} fps={30}\n    compositionWidth={640} compositionHeight={360} controls />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Official description, @remotion/player",
      "display": "Embeds a Remotion preview in a React app.",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart source file, @remotion/player",
      "display": "dist/cjs/Player.d.ts",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Repository stars, @remotion/player",
      "display": "74.3K",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "File URL input, @remotion/player",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "YouTube/Vimeo embeds, @remotion/player",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Input model, @remotion/player",
      "display": "React composition preview with explicit fps, frame count, dimensions, and props",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "License scope, @remotion/player",
      "display": "Remotion License has eligibility-limited free use and company-license terms",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project function, @remotion/player",
      "display": "export default function Home() {\n  const [prompt, setPrompt] = useState(\"\");\n  const [isGenerating, setIsGenerating] = useState(false);\n  const [spec, setSpec] = useState<TimelineSpec | null>(null);\n  const [error, setError] = useState<string | null>(null);\n  const inputRef = useRef<HTMLInputElement>(null);\n  const playerRef = useRef<PlayerRef>(null);\n\n  const generate = useCallback(async () => {\n    if (!prompt.trim() || isGenerating) return;\n\n    setIsGenerating(true);\n    setError(null);\n    setSpec(null);\n\n    try {\n      const response = await fetch(\"/api/generate\", {\n        method: \"POST\",\n        headers: { \"Content-Type\": \"application/json\" },\n        body: JSON.stringify({ prompt }),\n      });\n\n      if (!response.ok) {\n        throw new Error(\"Generation failed\");\n      }\n\n      const reader = response.body?.getReader();\n      if (!reader) throw new Error(\"No response body\");\n\n      const decoder = new TextDecoder();\n      const compiler = createSpecStreamCompiler<TimelineSpec>();\n\n      while (true) {\n        const { done, value } = await reader.read();\n        if (done) break;\n\n        const chunk = decoder.decode(value, { stream: true });\n        const { result, newPatches } = compiler.push(chunk);\n\n        if (newPatches.length > 0) {\n          setSpec(result);\n        }\n      }\n\n      // Get final result (processes any remaining buffer)\n      const finalSpec = compiler.getResult();\n      setSpec(finalSpec);\n\n      // Final validation and auto-play\n      if (isSpecComplete(finalSpec)) {\n        // Auto-play after a short delay to ensure Player is mounted\n        setTimeout(() => {\n          playerRef.current?.play();\n        }, 100);\n      } else {\n        setError(\"Generated timeline is incomplete\");\n      }\n    } catch (err) {\n      setError(err instanceof Error ? err.message : \"Generation failed\");\n    } finally {\n      setIsGenerating(false);\n    }\n  }, [prompt, isGenerating]);\n\n  const handleSubmit = (e: React.FormEvent) => {\n    e.preventDefault();\n    generate();\n  };\n\n  const handleExampleClick = (examplePrompt: string) => {\n    setPrompt(examplePrompt);\n    setTimeout(() => inputRef.current?.focus(), 0);\n  };\n\n  const handleExport = useCallback(() => {\n    if (!spec) return;\n    const blob = new Blob([JSON.stringify(spec, null, 2)], {\n      type: \"application/json\",\n    });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement(\"a\");\n    a.href = url;\n    a.download = \"timeline.json\";\n    a.click();\n    URL.revokeObjectURL(url);\n  }, [spec]);\n\n  return (\n    <div className=\"min-h-screen\">\n      {/* Hero */}\n      <section className=\"max-w-5xl mx-auto px-6 pt-24 pb-16 text-center\">\n        <div className=\"text-xs font-mono text-muted-foreground mb-4\">\n          @json-render/remotion\n        </div>\n        <h1 className=\"text-5xl sm:text-6xl md:text-7xl font-bold tracking-tighter mb-6\">\n          AI &rarr; json-render &rarr; Video\n        </h1>\n        <p className=\"text-lg text-muted-foreground max-w-2xl mx-auto mb-12 leading-relaxed\">\n          Define a video catalog. Users prompt. AI outputs timeline JSON\n          constrained to your components. Remotion renders it.\n        </p>\n\n        {/* Demo */}\n        <div className=\"max-w-4xl mx-auto\">\n          {/* Prompt Input */}\n          <form onSubmit={handleSubmit} className=\"mb-4\">\n            <div className=\"border border-border rounded p-3 bg-background font-mono text-sm flex items-center gap-2\">\n              <span className=\"text-muted-foreground\">&gt;</span>\n              <input\n                ref={inputRef}\n                type=\"text\"\n                value={prompt}\n                onChange={(e) => setPrompt(e.target.value)}\n                placeholder=\"Describe the video you want to create...\"\n                className=\"flex-1 bg-transparent outline-none placeholder:text-muted-foreground/50\"\n                disabled={isGenerating}\n                maxLength={500}\n              />\n              {isGenerating ? (\n                <button\n                  type=\"button\"\n                  onClick={() => setIsGenerating(false)}\n                  className=\"w-7 h-7 rounded-full bg-primary text-primary-foreground flex items-center justify-center hover:bg-primary/90 transition-colors\"\n                >\n                  <svg\n                    width=\"12\"\n                    height=\"12\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"currentColor\"\n                  >\n                    <rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" />\n                  </svg>\n                </button>\n              ) : (\n                <button\n                  type=\"submit\"\n                  disabled={!prompt.trim()}\n                  className=\"w-7 h-7 rounded-full bg-primary text-primary-foreground flex items-center justify-center hover:bg-primary/90 transition-colors disabled:opacity-30\"\n                >\n                  <svg\n                    width=\"14\"\n                    height=\"14\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"2\"\n                  >\n                    <path d=\"M5 12h14M12 5l7 7-7 7\" />\n                  </svg>\n                </button>\n              )}\n            </div>\n          </form>\n\n          {/* Example prompts */}\n          <div className=\"flex flex-wrap gap-2 justify-center mb-6\">\n            {EXAMPLE_PROMPTS.map((examplePrompt) => (\n              <button\n                key={examplePrompt}\n                onClick={() => handleExampleClick(examplePrompt)}\n                className=\"text-xs px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:border-foreground/50 transition-colors\"\n              >\n                {examplePrompt}\n              </button>\n            ))}\n          </div>\n\n          {error && (\n            <div className=\"mb-4 p-3 bg-red-500/10 border border-red-500/20 rounded text-red-500 text-sm\">\n              {error}\n            </div>\n          )}\n\n          <div className=\"grid lg:grid-cols-2 gap-4\">\n            {/* JSON Panel */}\n            <div className=\"text-left\">\n              <div className=\"flex items-center gap-4 mb-2 h-6\">\n                <span className=\"text-xs font-mono text-muted-foreground\">\n                  json\n                </span>\n                {isGenerating && (\n                  <span className=\"text-xs text-muted-foreground animate-pulse\">\n                    generating...\n                  </span>\n                )}\n              </div>\n              <div className=\"border border-border rounded bg-background font-mono text-xs h-[28rem] overflow-auto relative group\">\n                {spec && (\n                  <div className=\"absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity\">\n                    <CopyButton text={JSON.stringify(spec, null, 2)} />\n                  </div>\n                )}\n                {spec ? (\n                  <CodeBlock code={JSON.stringify(spec, null, 2)} />\n                ) : isGenerating ? (\n                  <div className=\"p-4 text-muted-foreground/50 h-full flex items-center justify-center\">\n                    <div className=\"flex flex-col items-center gap-2\">\n                      <div className=\"flex gap-1\">\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce\" />\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                        <span className=\"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                      </div>\n                      <span>Generating timeline...</span>\n                    </div>\n                  </div>\n                ) : (\n                  <div className=\"p-4 text-muted-foreground/50 h-full flex items-center justify-center\">\n                    Enter a prompt to generate a video timeline\n                  </div>\n                )}\n              </div>\n            </div>\n\n            {/* Video Preview Panel */}\n            <div>\n              <div className=\"flex items-center justify-between mb-2 h-6\">\n                <span className=\"text-xs font-mono text-muted-foreground\">\n                  preview\n                </span>\n                <div className=\"flex items-center gap-2\">\n                  {spec && isSpecComplete(spec) && (\n                    <button\n                      onClick={handleExport}\n                      className=\"text-xs px-2 py-1 rounded border border-border text-muted-foreground hover:text-foreground hover:border-foreground/50 transition-colors\"\n                      title=\"Export timeline JSON\"\n                    >\n                      Export\n                    </button>\n                  )}\n                </div>\n              </div>\n              <div\n                className=\"border border-border rounded bg-black h-[28rem] relative overflow-hidden\"\n                data-player-container\n              >\n                {spec && isSpecComplete(spec) ? (\n                  <Player\n                    ref={playerRef}\n                    component={Renderer}\n                    inputProps={{ spec }}\n                    durationInFrames={spec.composition.durationInFrames}\n                    fps={spec.composition.fps}\n                    compositionWidth={spec.composition.width}\n                    compositionHeight={spec.composition.height}\n                    style={{\n                      width: \"100%\",\n                      height: \"100%\",\n                    }}\n                    controls\n                    loop\n                  />\n                ) : (\n                  <div className=\"h-full flex items-center justify-center text-white/30 text-sm\">\n                    {isGenerating ? (\n                      <div className=\"flex flex-col items-center gap-2\">\n                        <div className=\"flex gap-1\">\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                        </div>\n                        <span>Generating timeline...</span>\n                      </div>\n                    ) : spec ? (\n                      <div className=\"flex flex-col items-center gap-2\">\n                        <div className=\"flex gap-1\">\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]\" />\n                          <span className=\"w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]\" />\n                        </div>\n                        <span>Building timeline...</span>\n                      </div>\n                    ) : (\n                      \"Enter a prompt to generate a video\"\n                    )}\n                  </div>\n                )}\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project source file, @remotion/player",
      "display": "examples/remotion/app/page.tsx",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project full_name, @remotion/player",
      "display": "vercel-labs/json-render",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project stargazers_count, @remotion/player",
      "display": "19.8K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Library name, @mux/mux-player-react",
      "display": "@mux/mux-player-react",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Monthly downloads, @mux/mux-player-react",
      "display": "12.6M",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "License, @mux/mux-player-react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release, @mux/mux-player-react",
      "display": "3.14.1",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release date, @mux/mux-player-react",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Install, @mux/mux-player-react",
      "display": "npm install @mux/mux-player-react@3.14.1",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart, @mux/mux-player-react",
      "display": "import MuxPlayer from \"@mux/mux-player-react\";\n\nexport default function App() {\n  return <MuxPlayer playbackId=\"DS00Spx1CV902MCtPj5WknGlR102V5HFkDe\" />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Repository stars, @mux/mux-player-react",
      "display": "363",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "File URL input, @mux/mux-player-react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "YouTube/Vimeo embeds, @mux/mux-player-react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Hosting model, @mux/mux-player-react",
      "display": "Mux playbackId plus writable media src and optional Mux metadata",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Maintenance, @mux/mux-player-react",
      "display": "Publisher describes Mux Player as maintenance mode and directs new projects toward Video.js",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, @mux/mux-player-react",
      "display": "function MobileFeatureVideo({\n  playbackId,\n  alt,\n  isActive,\n}: {\n  playbackId: string;\n  alt: string;\n  isActive: boolean;\n}) {\n  const playerRef = useRef<MuxPlayerRefAttributes>(null);\n  const thumbnailUrl = `https://image.mux.com/${playbackId}/thumbnail.jpg?width=1920&height=1080&fit_mode=smartcrop`;\n\n  useEffect(() => {\n    const player = playerRef.current;\n    if (!player) return;\n\n    if (isActive) {\n      player.play()?.catch(() => {\n        // Autoplay blocked or player not ready - fail silently\n      });\n    } else {\n      player.pause();\n      player.currentTime = 0;\n    }\n  }, [isActive]);\n\n  return (\n    <div className=\"relative h-full w-full\">\n      <img\n        src={thumbnailUrl}\n        alt={alt}\n        className={cn([\n          \"absolute inset-0 h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-0\" : \"opacity-100\",\n        ])}\n      />\n      <MuxPlayer\n        ref={playerRef}\n        playbackId={playbackId}\n        muted\n        loop\n        playsInline\n        maxResolution=\"1080p\"\n        minResolution=\"720p\"\n        className={cn([\n          \"h-full w-full object-contain transition-opacity duration-300\",\n          isActive ? \"opacity-100\" : \"opacity-0\",\n        ])}\n        style={\n          {\n            \"--controls\": \"none\",\n          } as React.CSSProperties & { [key: `--${string}`]: string }\n        }\n      />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, @mux/mux-player-react",
      "display": "apps/web/src/routes/_view/index.tsx",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, @mux/mux-player-react",
      "display": "fastrepl/anarlog",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, @mux/mux-player-react",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, react-player",
      "display": "react-player",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, react-player",
      "display": "12.2M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, react-player",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, react-player",
      "display": "3.4.0",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, react-player",
      "display": "Nov 2025",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, react-player",
      "display": "npm install react-player@3.4.0",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, react-player",
      "display": "import ReactPlayer from \"react-player\";\n\nexport default function App() {\n  return <ReactPlayer src=\"https://www.youtube.com/watch?v=LXb3EKWsInQ\" controls />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Repository stars, react-player",
      "display": "10.3K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "File URL input, react-player",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "YouTube/Vimeo embeds, react-player",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Input model, react-player",
      "display": "Single src interface routes file and multiple provider URLs",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Migration boundary, react-player",
      "display": "Current v3 src and provider configuration replace old v2 url/config.file inputs",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, react-youtube",
      "display": "react-youtube",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, react-youtube",
      "display": "3.8M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, react-youtube",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, react-youtube",
      "display": "10.1.0",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, react-youtube",
      "display": "Nov 2022",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, react-youtube",
      "display": "npm install react-youtube@10.1.0",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, react-youtube",
      "display": "import YouTube from \"react-youtube\";\n\nexport default function App() {\n  return <YouTube videoId=\"2g811Eo7K8U\" />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Official description, react-youtube",
      "display": "Provides a YouTube player component for React.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart source file, react-youtube",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Repository stars, react-youtube",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "File URL input, react-youtube",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "YouTube/Vimeo embeds, react-youtube",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Input model, react-youtube",
      "display": "YouTube videoId and YouTube IFrame Player options/events",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project function, react-youtube",
      "display": "export const Video = (props: any) => {\n  const { enabled } = useEditor((state) => ({\n    enabled: state.options.enabled,\n  }));\n  const {\n    connectors: { connect },\n  } = useNode((node) => ({\n    selected: node.events.selected,\n  }));\n\n  const { videoId } = props;\n\n  return (\n    <YoutubeDiv\n      ref={(dom) => {\n        connect(dom);\n      }}\n      $enabled={enabled}\n    >\n      <YouTube\n        videoId={videoId}\n        opts={{\n          width: '100%',\n          height: '100%',\n        }}\n      />\n    </YoutubeDiv>\n  );\n};\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project source file, react-youtube",
      "display": "examples/landing/components/selectors/Video/index.tsx",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project full_name, react-youtube",
      "display": "prevwong/craft.js",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project stargazers_count, react-youtube",
      "display": "8.8K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Library name, @vidstack/react",
      "display": "@vidstack/react",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Monthly downloads, @vidstack/react",
      "display": "2.3M",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "License, @vidstack/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Package release, @vidstack/react",
      "display": "1.15.7",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Package release date, @vidstack/react",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Install, @vidstack/react",
      "display": "npm install @vidstack/react@1.15.7",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart, @vidstack/react",
      "display": "import \"@vidstack/react/player/styles/default/theme.css\";\nimport \"@vidstack/react/player/styles/default/layouts/video.css\";\nimport { MediaPlayer, MediaProvider } from \"@vidstack/react\";\nimport { DefaultVideoLayout, defaultLayoutIcons } from \"@vidstack/react/player/layouts/default\";\n\nexport default function App() {\n  return (\n    <MediaPlayer src=\"https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4\">\n      <MediaProvider />\n      <DefaultVideoLayout icons={defaultLayoutIcons} />\n    </MediaPlayer>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Repository stars, @vidstack/react",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "File URL input, @vidstack/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "YouTube/Vimeo embeds, @vidstack/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Input model, @vidstack/react",
      "display": "Provider-backed media element plus composable/default layouts and React hooks",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Maintenance, @vidstack/react",
      "display": "Deprecated in favour of Video.js10; security fixes only until January2028",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project function, @vidstack/react",
      "display": "export const Video = ({\n  src,\n  poster,\n  aspectRatio,\n  className,\n  gifStyle = false,\n  autoPlay = false,\n  title,\n  type,\n}: {\n  src: string\n  poster?: string\n  /** Ratio in `width/height` form, e.g. `\"16/9\"`. */\n  aspectRatio?: string\n  /** Muted, looping, controls-free autoplay (ambient/gif-like). */\n  gifStyle?: boolean\n  /** Muted autoplay that keeps player controls so motion can be paused, scrubbed, and replayed. */\n  autoPlay?: boolean\n  className?: string\n  title?: string\n  /** Explicit MIME type, e.g. `\"video/mp4\"`. Needed for extensionless URLs. */\n  type?: string\n}) => {\n  const [panelDismissed, setPanelDismissed] = useState(false)\n  const mediaPlayerRef = useRef<MediaPlayerInstance>(null)\n  const remote = useMediaRemote(mediaPlayerRef)\n  const { duration } = useMediaStore(mediaPlayerRef)\n  const durationString = duration\n    ? `${Math.floor(duration / 60)}:${Math.floor(duration % 60)} min`\n    : null\n\n  // Vidstack infers the provider from a string src's file extension. Extensionless\n  // URLs (e.g. GitHub asset links) resolve no provider, so pass an explicit MIME\n  // type: honor an override, keep recognized extensions as plain strings, and\n  // default the rest to mp4.\n  const source = (\n    type === undefined\n      ? /\\.(mp4|webm|ogg|ogv|mov|m4v|m3u8|mpd)(\\?|#|$)/i.test(src)\n        ? src\n        : { src, type: 'video/mp4' }\n      : { src, type }\n  ) as ComponentProps<typeof MediaPlayer>['src']\n\n  // gifStyle and autoPlay both start muted playback eagerly. gifStyle loops with\n  // no controls (ambient), while autoPlay keeps controls so users can pause,\n  // scrub, and replay.\n  const isAutoplay = gifStyle || autoPlay\n\n  return (\n    <MediaPlayer\n      ref={mediaPlayerRef}\n      src={source}\n      controls={!gifStyle && (autoPlay || panelDismissed)}\n      autoPlay={isAutoplay}\n      muted={isAutoplay}\n      loop={gifStyle}\n      load={isAutoplay ? 'eager' : 'custom'}\n      playsInline={isAutoplay}\n      aspectRatio={aspectRatio}\n      className={cn(\n        'my-4 overflow-hidden shadow-lg ring-1 ring-slate-700 bg-cover object-cover',\n        className,\n      )}\n    >\n      {gifStyle ? (\n        // Capture mouse events, they broke scrolling on iOS\n        <div className=\"absolute inset-0 z-10\" />\n      ) : autoPlay || panelDismissed ? null : (\n        // Overlay with play button and poster image\n        <div\n          role=\"button\"\n          tabIndex={0}\n          aria-label={title ? `Play ${title}` : 'Play video'}\n          className=\"group cursor-pointer absolute inset-0 z-10 flex flex-col justify-center items-center bg-cover\"\n          style={{\n            backgroundImage: poster ? `url(${poster})` : undefined,\n          }}\n          onMouseEnter={() => {\n            remote.startLoading()\n          }}\n          onClick={() => {\n            remote.play()\n            setPanelDismissed(true)\n          }}\n          onKeyDown={(e) => {\n            if (e.key === 'Enter' || e.key === ' ') {\n              e.preventDefault()\n              remote.play()\n              setPanelDismissed(true)\n            }\n          }}\n        >\n          <div className=\"p-3 md:p-6 rounded-full bg-black/75 group-hover:ring-8 ring-black/20 hover:bg-black/90 transition flex\">\n            <Play className=\"size-6 text-white\" />\n          </div>\n          <div className=\"mt-3 md:mt-6 md:opacity-0 group-hover:opacity-100 transition-opacity duration-300\">\n            <span className=\"flex gap-2 text-xs md:text-sm font-semibold bg-black/90 text-white py-1 px-3 rounded-full\">\n              {title && <span>{title}</span>}\n              {durationString && <span className=\"text-white/70\">{durationString}</span>}\n            </span>\n          </div>\n        </div>\n      )}\n      <MediaProvider />\n    </MediaPlayer>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project source file, @vidstack/react",
      "display": "components/Video.tsx",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project full_name, @vidstack/react",
      "display": "LibreChat-AI/docs",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project stargazers_count, @vidstack/react",
      "display": "697",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Library name, react-lite-youtube-embed",
      "display": "react-lite-youtube-embed",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Monthly downloads, react-lite-youtube-embed",
      "display": "1.5M",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "License, react-lite-youtube-embed",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Package release, react-lite-youtube-embed",
      "display": "3.7.0",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release date, react-lite-youtube-embed",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Install, react-lite-youtube-embed",
      "display": "npm install react-lite-youtube-embed@3.7.0",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart, react-lite-youtube-embed",
      "display": "import LiteYouTubeEmbed from 'react-lite-youtube-embed';\nimport 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';\n\nexport default function App() {\n  return (\n    <LiteYouTubeEmbed\n      id=\"dQw4w9WgXcQ\"\n      title=\"Rick Astley - Never Gonna Give You Up\"\n    />\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Official description, react-lite-youtube-embed",
      "display": "Provides a private-by-default YouTube embed component for React applications.",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Quickstart source file, react-lite-youtube-embed",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Repository stars, react-lite-youtube-embed",
      "display": "382",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "File URL input, react-lite-youtube-embed",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "YouTube/Vimeo embeds, react-lite-youtube-embed",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Input model, react-lite-youtube-embed",
      "display": "YouTube ID/title placeholder with iframe activation and optional privacy/URL parameters",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project function, react-lite-youtube-embed",
      "display": "const YouTube = ({\n  id,\n  start = \"0\",\n  title = \"YouTube\",\n  portrait,\n  className,\n  ...props\n}: YouTubeProps) => {\n  const params = new URLSearchParams()\n  ;+start > 0 && params.set(\"start\", start)\n  return (\n    <figure className={cn(portrait && \"aspect-9/16 max-h-105\", className)}>\n      <LiteYouTubeEmbed\n        aspectHeight={portrait ? 16 : 9}\n        aspectWidth={portrait ? 9 : 16}\n        id={id}\n        title={title}\n        params={params.toString()}\n        noCookie\n        {...props}\n      />\n    </figure>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project source file, react-lite-youtube-embed",
      "display": "src/components/YouTube.tsx",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project full_name, react-lite-youtube-embed",
      "display": "ethereum/ethereum-org-website",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project stargazers_count, react-lite-youtube-embed",
      "display": "6.0K",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Library name, @videojs/react",
      "display": "@videojs/react",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Monthly downloads, @videojs/react",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "License, @videojs/react",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release, @videojs/react",
      "display": "10.5.0",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release date, @videojs/react",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Install, @videojs/react",
      "display": "npm install @videojs/react@10.5.0",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Quickstart, @videojs/react",
      "display": "import '@videojs/react/video/skin.css';\nimport { VideoPlayer, VideoSkin, Video } from '@videojs/react/video';\n\nexport default function Page() {\n  return (\n    <VideoPlayer>\n      <VideoSkin style={{ width: '100%', aspectRatio: '16 / 9' }}>\n        <Video src={\"https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4\"} playsInline />\n      </VideoSkin>\n    </VideoPlayer>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Official description, @videojs/react",
      "display": "Video.js 10 for React: player components, skins, and hooks for video and audio",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Quickstart source file, @videojs/react",
      "display": "app/page.tsx",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Repository stars, @videojs/react",
      "display": "40.2K",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "File URL input, @videojs/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "YouTube/Vimeo embeds, @videojs/react",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Input model, @videojs/react",
      "display": "Video/audio/live presets with composable skins, hooks, and optional media adapters",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Migration context, @videojs/react",
      "display": "Official guide explicitly covers migrations from Vidstack, Mux Player, and Video-React",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, @u-wave/react-vimeo",
      "display": "@u-wave/react-vimeo",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, @u-wave/react-vimeo",
      "display": "779.6K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, @u-wave/react-vimeo",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, @u-wave/react-vimeo",
      "display": "0.9.12",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, @u-wave/react-vimeo",
      "display": "Dec 2024",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, @u-wave/react-vimeo",
      "display": "npm install @u-wave/react-vimeo@0.9.12",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, @u-wave/react-vimeo",
      "display": "import Vimeo from \"@u-wave/react-vimeo\";\n\nexport default function App() {\n  return <Vimeo video=\"https://vimeo.com/76979871\" />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, @u-wave/react-vimeo",
      "display": "Vimeo player component for React.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, @u-wave/react-vimeo",
      "display": "README.md; index.d.ts",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Repository stars, @u-wave/react-vimeo",
      "display": "229",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "File URL input, @u-wave/react-vimeo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "YouTube/Vimeo embeds, @u-wave/react-vimeo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Input model, @u-wave/react-vimeo",
      "display": "Vimeo video ID or URL with controlled playback props and Vimeo event callbacks",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Receiver boundary, @u-wave/react-vimeo",
      "display": "Event APIs expose Vimeo player objects; their methods are peer Vimeo APIs, not additional wrapper-native operations",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React video player libraries ReactPlayer Vidstack Plyr Mux code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
