# React video player libraries

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.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [@remotion/player](#remotion-player) | 13.2M | 74.3K | Nov 2026 | Remotion License |
| [@mux/mux-player-react](#mux-player-react) | 12.6M | 363 | Oct 2026 | MIT |
| [react-player](#reactplayer) | 12.2M | 10.3K | Nov 2025 | MIT |
| [react-youtube](#react-youtube) | 3.8M | 1.9K | Nov 2022 | MIT |
| [@vidstack/react](#vidstack-react) | 2.3M | 3.7K | Oct 2026 | MIT |
| [react-lite-youtube-embed](#react-lite-youtube-embed) | 1.5M | 382 | Sep 2026 | MIT |
| [@videojs/react](#videojs-react) | 1.1M | 40.2K | Nov 2026 | Apache-2.0 |
| [@u-wave/react-vimeo](#u-wave-react-vimeo) | 779.6K | 229 | Dec 2024 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[@mux/mux-player-react](#mux-player-react) has the most monthly downloads among the dedicated video players in this comparison, at 12.6M.

## Capabilities

| Library | File URL input | YouTube/Vimeo embeds |
| --- | --- | --- |
| [@remotion/player](#remotion-player) | No | No |
| [@mux/mux-player-react](#mux-player-react) | Yes | No |
| [react-player](#reactplayer) | Yes | Yes |
| [react-youtube](#react-youtube) | No | Yes |
| [@vidstack/react](#vidstack-react) | Yes | Yes |
| [react-lite-youtube-embed](#react-lite-youtube-embed) | No | Yes |
| [@videojs/react](#videojs-react) | Yes | Via plugin |
| [@u-wave/react-vimeo](#u-wave-react-vimeo) | No | Yes |

## Libraries

### @remotion/player

[GitHub](https://github.com/remotion-dev/remotion) · [npm](https://www.npmjs.com/package/@remotion/player) · [Docs](https://www.remotion.dev/docs/player)

Embeds a Remotion preview in a React app.

- Downloads / mo: 13.2M
- Stars: 74.3K
- Last release: 4.0.545
- License: Remotion License
- Capabilities: [From the @remotion/player docs](https://www.remotion.dev/docs/player)

```sh
npm install @remotion/player@4.0.545
```

**vercel-labs/json-render** (19.8K stars)

[vercel-labs/json-render](https://github.com/vercel-labs/json-render) 

```tsx
export default function Home() {
  const [prompt, setPrompt] = useState("");
  const [isGenerating, setIsGenerating] = useState(false);
  const [spec, setSpec] = useState<TimelineSpec | null>(null);
  const [error, setError] = useState<string | null>(null);
  const inputRef = useRef<HTMLInputElement>(null);
  const playerRef = useRef<PlayerRef>(null);

  const generate = useCallback(async () => {
    if (!prompt.trim() || isGenerating) return;

    setIsGenerating(true);
    setError(null);
    setSpec(null);

    try {
      const response = await fetch("/api/generate", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ prompt }),
      });

      if (!response.ok) {
        throw new Error("Generation failed");
      }

      const reader = response.body?.getReader();
      if (!reader) throw new Error("No response body");

      const decoder = new TextDecoder();
      const compiler = createSpecStreamCompiler<TimelineSpec>();

      while (true) {
        const { done, value } = await reader.read();
        if (done) break;

        const chunk = decoder.decode(value, { stream: true });
        const { result, newPatches } = compiler.push(chunk);

        if (newPatches.length > 0) {
          setSpec(result);
        }
      }

      // Get final result (processes any remaining buffer)
      const finalSpec = compiler.getResult();
      setSpec(finalSpec);

      // Final validation and auto-play
      if (isSpecComplete(finalSpec)) {
        // Auto-play after a short delay to ensure Player is mounted
        setTimeout(() => {
          playerRef.current?.play();
        }, 100);
      } else {
        setError("Generated timeline is incomplete");
      }
    } catch (err) {
      setError(err instanceof Error ? err.message : "Generation failed");
    } finally {
      setIsGenerating(false);
    }
  }, [prompt, isGenerating]);

  const handleSubmit = (e: React.FormEvent) => {
    e.preventDefault();
    generate();
  };

  const handleExampleClick = (examplePrompt: string) => {
    setPrompt(examplePrompt);
    setTimeout(() => inputRef.current?.focus(), 0);
  };

  const handleExport = useCallback(() => {
    if (!spec) return;
    const blob = new Blob([JSON.stringify(spec, null, 2)], {
      type: "application/json",
    });
    const url = URL.createObjectURL(blob);
    const a = document.createElement("a");
    a.href = url;
    a.download = "timeline.json";
    a.click();
    URL.revokeObjectURL(url);
  }, [spec]);

  return (
    <div className="min-h-screen">
      {/* Hero */}
      <section className="max-w-5xl mx-auto px-6 pt-24 pb-16 text-center">
        <div className="text-xs font-mono text-muted-foreground mb-4">
          @json-render/remotion
        </div>
        <h1 className="text-5xl sm:text-6xl md:text-7xl font-bold tracking-tighter mb-6">
          AI &rarr; json-render &rarr; Video
        </h1>
        <p className="text-lg text-muted-foreground max-w-2xl mx-auto mb-12 leading-relaxed">
          Define a video catalog. Users prompt. AI outputs timeline JSON
          constrained to your components. Remotion renders it.
        </p>

        {/* Demo */}
        <div className="max-w-4xl mx-auto">
          {/* Prompt Input */}
          <form onSubmit={handleSubmit} className="mb-4">
            <div className="border border-border rounded p-3 bg-background font-mono text-sm flex items-center gap-2">
              <span className="text-muted-foreground">&gt;</span>
              <input
                ref={inputRef}
                type="text"
                value={prompt}
                onChange={(e) => setPrompt(e.target.value)}
                placeholder="Describe the video you want to create..."
                className="flex-1 bg-transparent outline-none placeholder:text-muted-foreground/50"
                disabled={isGenerating}
                maxLength={500}
              />
              {isGenerating ? (
                <button
                  type="button"
                  onClick={() => setIsGenerating(false)}
                  className="w-7 h-7 rounded-full bg-primary text-primary-foreground flex items-center justify-center hover:bg-primary/90 transition-colors"
                >
                  <svg
                    width="12"
                    height="12"
                    viewBox="0 0 24 24"
                    fill="currentColor"
                  >
                    <rect x="6" y="6" width="12" height="12" />
                  </svg>
                </button>
              ) : (
                <button
                  type="submit"
                  disabled={!prompt.trim()}
                  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"
                >
                  <svg
                    width="14"
                    height="14"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    strokeWidth="2"
                  >
                    <path d="M5 12h14M12 5l7 7-7 7" />
                  </svg>
                </button>
              )}
            </div>
          </form>

          {/* Example prompts */}
          <div className="flex flex-wrap gap-2 justify-center mb-6">
            {EXAMPLE_PROMPTS.map((examplePrompt) => (
              <button
                key={examplePrompt}
                onClick={() => handleExampleClick(examplePrompt)}
                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"
              >
                {examplePrompt}
              </button>
            ))}
          </div>

          {error && (
            <div className="mb-4 p-3 bg-red-500/10 border border-red-500/20 rounded text-red-500 text-sm">
              {error}
            </div>
          )}

          <div className="grid lg:grid-cols-2 gap-4">
            {/* JSON Panel */}
            <div className="text-left">
              <div className="flex items-center gap-4 mb-2 h-6">
                <span className="text-xs font-mono text-muted-foreground">
                  json
                </span>
                {isGenerating && (
                  <span className="text-xs text-muted-foreground animate-pulse">
                    generating...
                  </span>
                )}
              </div>
              <div className="border border-border rounded bg-background font-mono text-xs h-[28rem] overflow-auto relative group">
                {spec && (
                  <div className="absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity">
                    <CopyButton text={JSON.stringify(spec, null, 2)} />
                  </div>
                )}
                {spec ? (
                  <CodeBlock code={JSON.stringify(spec, null, 2)} />
                ) : isGenerating ? (
                  <div className="p-4 text-muted-foreground/50 h-full flex items-center justify-center">
                    <div className="flex flex-col items-center gap-2">
                      <div className="flex gap-1">
                        <span className="w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce" />
                        <span className="w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.1s]" />
                        <span className="w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce [animation-delay:0.2s]" />
                      </div>
                      <span>Generating timeline...</span>
                    </div>
                  </div>
                ) : (
                  <div className="p-4 text-muted-foreground/50 h-full flex items-center justify-center">
                    Enter a prompt to generate a video timeline
                  </div>
                )}
              </div>
            </div>

            {/* Video Preview Panel */}
            <div>
              <div className="flex items-center justify-between mb-2 h-6">
                <span className="text-xs font-mono text-muted-foreground">
                  preview
                </span>
                <div className="flex items-center gap-2">
                  {spec && isSpecComplete(spec) && (
                    <button
                      onClick={handleExport}
                      className="text-xs px-2 py-1 rounded border border-border text-muted-foreground hover:text-foreground hover:border-foreground/50 transition-colors"
                      title="Export timeline JSON"
                    >
                      Export
                    </button>
                  )}
                </div>
              </div>
              <div
                className="border border-border rounded bg-black h-[28rem] relative overflow-hidden"
                data-player-container
              >
                {spec && isSpecComplete(spec) ? (
                  <Player
                    ref={playerRef}
                    component={Renderer}
                    inputProps={{ spec }}
                    durationInFrames={spec.composition.durationInFrames}
                    fps={spec.composition.fps}
                    compositionWidth={spec.composition.width}
                    compositionHeight={spec.composition.height}
                    style={{
                      width: "100%",
                      height: "100%",
                    }}
                    controls
                    loop
                  />
                ) : (
                  <div className="h-full flex items-center justify-center text-white/30 text-sm">
                    {isGenerating ? (
                      <div className="flex flex-col items-center gap-2">
                        <div className="flex gap-1">
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce" />
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]" />
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]" />
                        </div>
                        <span>Generating timeline...</span>
                      </div>
                    ) : spec ? (
                      <div className="flex flex-col items-center gap-2">
                        <div className="flex gap-1">
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce" />
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.1s]" />
                          <span className="w-2 h-2 bg-white/50 rounded-full animate-bounce [animation-delay:0.2s]" />
                        </div>
                        <span>Building timeline...</span>
                      </div>
                    ) : (
                      "Enter a prompt to generate a video"
                    )}
                  </div>
                )}
              </div>
            </div>
          </div>
        </div>
      </section>
    </div>
  );
}

```

[examples/remotion/app/page.tsx](https://github.com/vercel-labs/json-render/blob/c926907855d95dde328264350ac5464b60be201d/examples/remotion/app/page.tsx#L163-L446) · [More projects using @remotion/player →](https://dashboard.exa.ai/playground/search?q=%40remotion/player%20GitHub%20projects)

**Quickstart**

```tsx
import { Player } from "@remotion/player";

function HelloVideo() {
  return <div style={{ fontSize: 64 }}>Hello</div>;
}

export default function App() {
  return <Player component={HelloVideo} durationInFrames={90} fps={30}
    compositionWidth={640} compositionHeight={360} controls />;
}

```

From [Player.d.ts](https://cdn.jsdelivr.net/npm/@remotion/player@4.0.545/dist/cjs/Player.d.ts)

### @mux/mux-player-react

[GitHub](https://github.com/muxinc/elements) · [npm](https://www.npmjs.com/package/@mux/mux-player-react) · [Docs](https://registry.npmjs.org/@mux/mux-player-react/latest)

Provides a React video player built on Mux Player and Media Chrome.

- Downloads / mo: 12.6M
- Stars: 363
- Last release: 3.14.1
- License: MIT
- Capabilities: [From the @mux/mux-player-react docs](https://registry.npmjs.org/@mux/mux-player-react/latest)

**Strengths**

- **Defers loading until in view.** Use the lazy entry point with loading set to viewport.
- **Attaches playback analytics metadata.** Pass video and viewer metadata to Mux Data.

**Watch out for**

- **Analytics cookies need explicit control.** Set disableCookies when Mux Data must avoid cookies.
- **Resolution caps remove higher renditions.** Use maxAutoResolution when manual higher-quality selection should remain available.

```sh
npm install @mux/mux-player-react@3.14.1
```

**fastrepl/anarlog** (9.9K stars)

[fastrepl/anarlog](https://github.com/fastrepl/anarlog) 

```tsx
function MobileFeatureVideo({
  playbackId,
  alt,
  isActive,
}: {
  playbackId: string;
  alt: string;
  isActive: boolean;
}) {
  const playerRef = useRef<MuxPlayerRefAttributes>(null);
  const thumbnailUrl = `https://image.mux.com/${playbackId}/thumbnail.jpg?width=1920&height=1080&fit_mode=smartcrop`;

  useEffect(() => {
    const player = playerRef.current;
    if (!player) return;

    if (isActive) {
      player.play()?.catch(() => {
        // Autoplay blocked or player not ready - fail silently
      });
    } else {
      player.pause();
      player.currentTime = 0;
    }
  }, [isActive]);

  return (
    <div className="relative h-full w-full">
      <img
        src={thumbnailUrl}
        alt={alt}
        className={cn([
          "absolute inset-0 h-full w-full object-contain transition-opacity duration-300",
          isActive ? "opacity-0" : "opacity-100",
        ])}
      />
      <MuxPlayer
        ref={playerRef}
        playbackId={playbackId}
        muted
        loop
        playsInline
        maxResolution="1080p"
        minResolution="720p"
        className={cn([
          "h-full w-full object-contain transition-opacity duration-300",
          isActive ? "opacity-100" : "opacity-0",
        ])}
        style={
          {
            "--controls": "none",
          } as React.CSSProperties & { [key: `--${string}`]: string }
        }
      />
    </div>
  );
}

```

[apps/web/src/routes/_view/index.tsx](https://github.com/fastrepl/anarlog/blob/6ac06c35e931e6d87466252673d9a374d2b62b23/apps/web/src/routes/_view/index.tsx#L1265-L1321) · [More projects using @mux/mux-player-react →](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)

**Quickstart**

```tsx
import MuxPlayer from "@mux/mux-player-react";

export default function App() {
  return <MuxPlayer playbackId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe" />;
}

```

From [README.md](https://github.com/muxinc/elements/blob/main/packages/mux-player-react/README.md)

### react-player

[GitHub](https://github.com/cookpete/react-player) · [npm](https://www.npmjs.com/package/react-player) · [Docs](https://registry.npmjs.org/react-player/latest)

Plays file URLs and hosted video through one React component.

- Downloads / mo: 12.2M
- Stars: 10.3K
- Last release: 3.4.0
- License: MIT
- Capabilities: [From the react-player docs](https://registry.npmjs.org/react-player/latest)

**Strengths**

- **Plays multiple video providers.** Use one component for file URLs, YouTube, Vimeo, and Mux.
- **Defers playback behind thumbnails.** Use light to load the player after a thumbnail click.

**Watch out for**

- **v2 integrations need migration.** Update legacy integrations before switching to the v3 architecture.
- **Some thumbnails need explicit URLs.** Provide light with an image URL for unsupported thumbnail sources.

```sh
npm install react-player@3.4.0
```

**Quickstart**

```tsx
import ReactPlayer from "react-player";

export default function App() {
  return <ReactPlayer src="https://www.youtube.com/watch?v=LXb3EKWsInQ" controls />;
}

```

From [README.md](https://registry.npmjs.org/react-player/latest) · [Find projects using react-player →](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)

### react-youtube

[GitHub](https://github.com/tjallingt/react-youtube) · [npm](https://www.npmjs.com/package/react-youtube) · [Docs](https://registry.npmjs.org/react-youtube/latest)

Provides a YouTube player component for React.

- Downloads / mo: 3.8M
- Stars: 1.9K
- Last release: 10.1.0
- License: MIT
- Capabilities: [From the react-youtube docs](https://registry.npmjs.org/react-youtube/latest)

```sh
npm install react-youtube@10.1.0
```

**prevwong/craft.js** (8.8K stars)

[prevwong/craft.js](https://github.com/prevwong/craft.js) 

```tsx
export const Video = (props: any) => {
  const { enabled } = useEditor((state) => ({
    enabled: state.options.enabled,
  }));
  const {
    connectors: { connect },
  } = useNode((node) => ({
    selected: node.events.selected,
  }));

  const { videoId } = props;

  return (
    <YoutubeDiv
      ref={(dom) => {
        connect(dom);
      }}
      $enabled={enabled}
    >
      <YouTube
        videoId={videoId}
        opts={{
          width: '100%',
          height: '100%',
        }}
      />
    </YoutubeDiv>
  );
};

```

[examples/landing/components/selectors/Video/index.tsx](https://github.com/prevwong/craft.js/blob/23f44f3208ebf78d1632ec4aa7094001f513eb41/examples/landing/components/selectors/Video/index.tsx#L21-L49) · [More projects using react-youtube →](https://dashboard.exa.ai/playground/search?q=react-youtube%20GitHub%20projects)

**Quickstart**

```tsx
import YouTube from "react-youtube";

export default function App() {
  return <YouTube videoId="2g811Eo7K8U" />;
}

```

From [README.md](https://registry.npmjs.org/react-youtube/latest)

### @vidstack/react

[GitHub](https://github.com/vidstack/player) · [npm](https://www.npmjs.com/package/@vidstack/react) · [Docs](https://registry.npmjs.org/@vidstack/react/latest)

Builds React video and audio players with reusable components and layouts.

- Downloads / mo: 2.3M
- Stars: 3.7K
- Last release: 1.15.7
- License: MIT
- Capabilities: [From the @vidstack/react docs](https://registry.npmjs.org/@vidstack/react/latest)

**Strengths**

- **Supports ready-made or custom layouts.** Start with a layout or compose custom player controls.
- **Defers media loading until visible.** Use the visible strategy for players below the fold.

**Watch out for**

- **Receives security fixes only.** Plan migration; feature development has moved to Video.js.
- **Local HLS needs another dependency.** Install hls.js when loading the HLS provider locally.

```sh
npm install @vidstack/react@1.15.7
```

**LibreChat-AI/docs** (697 stars)

[LibreChat-AI/docs](https://github.com/LibreChat-AI/docs) 

```tsx
export const Video = ({
  src,
  poster,
  aspectRatio,
  className,
  gifStyle = false,
  autoPlay = false,
  title,
  type,
}: {
  src: string
  poster?: string
  /** Ratio in `width/height` form, e.g. `"16/9"`. */
  aspectRatio?: string
  /** Muted, looping, controls-free autoplay (ambient/gif-like). */
  gifStyle?: boolean
  /** Muted autoplay that keeps player controls so motion can be paused, scrubbed, and replayed. */
  autoPlay?: boolean
  className?: string
  title?: string
  /** Explicit MIME type, e.g. `"video/mp4"`. Needed for extensionless URLs. */
  type?: string
}) => {
  const [panelDismissed, setPanelDismissed] = useState(false)
  const mediaPlayerRef = useRef<MediaPlayerInstance>(null)
  const remote = useMediaRemote(mediaPlayerRef)
  const { duration } = useMediaStore(mediaPlayerRef)
  const durationString = duration
    ? `${Math.floor(duration / 60)}:${Math.floor(duration % 60)} min`
    : null

  // Vidstack infers the provider from a string src's file extension. Extensionless
  // URLs (e.g. GitHub asset links) resolve no provider, so pass an explicit MIME
  // type: honor an override, keep recognized extensions as plain strings, and
  // default the rest to mp4.
  const source = (
    type === undefined
      ? /\.(mp4|webm|ogg|ogv|mov|m4v|m3u8|mpd)(\?|#|$)/i.test(src)
        ? src
        : { src, type: 'video/mp4' }
      : { src, type }
  ) as ComponentProps<typeof MediaPlayer>['src']

  // gifStyle and autoPlay both start muted playback eagerly. gifStyle loops with
  // no controls (ambient), while autoPlay keeps controls so users can pause,
  // scrub, and replay.
  const isAutoplay = gifStyle || autoPlay

  return (
    <MediaPlayer
      ref={mediaPlayerRef}
      src={source}
      controls={!gifStyle && (autoPlay || panelDismissed)}
      autoPlay={isAutoplay}
      muted={isAutoplay}
      loop={gifStyle}
      load={isAutoplay ? 'eager' : 'custom'}
      playsInline={isAutoplay}
      aspectRatio={aspectRatio}
      className={cn(
        'my-4 overflow-hidden shadow-lg ring-1 ring-slate-700 bg-cover object-cover',
        className,
      )}
    >
      {gifStyle ? (
        // Capture mouse events, they broke scrolling on iOS
        <div className="absolute inset-0 z-10" />
      ) : autoPlay || panelDismissed ? null : (
        // Overlay with play button and poster image
        <div
          role="button"
          tabIndex={0}
          aria-label={title ? `Play ${title}` : 'Play video'}
          className="group cursor-pointer absolute inset-0 z-10 flex flex-col justify-center items-center bg-cover"
          style={{
            backgroundImage: poster ? `url(${poster})` : undefined,
          }}
          onMouseEnter={() => {
            remote.startLoading()
          }}
          onClick={() => {
            remote.play()
            setPanelDismissed(true)
          }}
          onKeyDown={(e) => {
            if (e.key === 'Enter' || e.key === ' ') {
              e.preventDefault()
              remote.play()
              setPanelDismissed(true)
            }
          }}
        >
          <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">
            <Play className="size-6 text-white" />
          </div>
          <div className="mt-3 md:mt-6 md:opacity-0 group-hover:opacity-100 transition-opacity duration-300">
            <span className="flex gap-2 text-xs md:text-sm font-semibold bg-black/90 text-white py-1 px-3 rounded-full">
              {title && <span>{title}</span>}
              {durationString && <span className="text-white/70">{durationString}</span>}
            </span>
          </div>
        </div>
      )}
      <MediaProvider />
    </MediaPlayer>
  )
}

```

[components/Video.tsx](https://github.com/LibreChat-AI/docs/blob/421720dede84f185b0614a487a3a6753e45068eb/components/Video.tsx#L15-L121) · [More projects using @vidstack/react →](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)

**Quickstart**

```tsx
import "@vidstack/react/player/styles/default/theme.css";
import "@vidstack/react/player/styles/default/layouts/video.css";
import { MediaPlayer, MediaProvider } from "@vidstack/react";
import { DefaultVideoLayout, defaultLayoutIcons } from "@vidstack/react/player/layouts/default";

export default function App() {
  return (
    <MediaPlayer src="https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4">
      <MediaProvider />
      <DefaultVideoLayout icons={defaultLayoutIcons} />
    </MediaPlayer>
  );
}

```

From [player.tsx](https://cdn.jsdelivr.net/npm/@vidstack/react@1.15.7/types/vidstack-react.d.ts)

### react-lite-youtube-embed

[GitHub](https://github.com/ibrahimcesar/react-lite-youtube-embed) · [npm](https://www.npmjs.com/package/react-lite-youtube-embed) · [Docs](https://registry.npmjs.org/react-lite-youtube-embed/latest)

Provides a private-by-default YouTube embed component for React applications.

- Downloads / mo: 1.5M
- Stars: 382
- Last release: 3.7.0
- License: MIT
- Capabilities: [From the react-lite-youtube-embed docs](https://registry.npmjs.org/react-lite-youtube-embed/latest)

```sh
npm install react-lite-youtube-embed@3.7.0
```

**ethereum/ethereum-org-website** (6.0K stars)

[ethereum/ethereum-org-website](https://github.com/ethereum/ethereum-org-website) 

```tsx
const YouTube = ({
  id,
  start = "0",
  title = "YouTube",
  portrait,
  className,
  ...props
}: YouTubeProps) => {
  const params = new URLSearchParams()
  ;+start > 0 && params.set("start", start)
  return (
    <figure className={cn(portrait && "aspect-9/16 max-h-105", className)}>
      <LiteYouTubeEmbed
        aspectHeight={portrait ? 16 : 9}
        aspectWidth={portrait ? 9 : 16}
        id={id}
        title={title}
        params={params.toString()}
        noCookie
        {...props}
      />
    </figure>
  )
}

```

[src/components/YouTube.tsx](https://github.com/ethereum/ethereum-org-website/blob/afad4e9f717bfd1feffa2e5e25f06ee5907d5315/src/components/YouTube.tsx#L29-L52) · [More projects using react-lite-youtube-embed →](https://dashboard.exa.ai/playground/search?q=react-lite-youtube-embed%20GitHub%20projects)

**Quickstart**

```tsx
import LiteYouTubeEmbed from 'react-lite-youtube-embed';
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';

export default function App() {
  return (
    <LiteYouTubeEmbed
      id="dQw4w9WgXcQ"
      title="Rick Astley - Never Gonna Give You Up"
    />
  );
}

```

From [README.md](https://registry.npmjs.org/react-lite-youtube-embed/latest)

### @videojs/react

[GitHub](https://github.com/videojs/video.js) · [npm](https://www.npmjs.com/package/@videojs/react) · [Docs](https://videojs.org/docs/framework/react/)

Video.js 10 for React: player components, skins, and hooks for video and audio

- Downloads / mo: 1.1M
- Stars: 40.2K
- Last release: 10.5.0
- License: Apache-2.0
- Capabilities: [From the @videojs/react docs](https://videojs.org/docs/framework/react/)

```sh
npm install @videojs/react@10.5.0
```

**Quickstart**

```tsx
import '@videojs/react/video/skin.css';
import { VideoPlayer, VideoSkin, Video } from '@videojs/react/video';

export default function Page() {
  return (
    <VideoPlayer>
      <VideoSkin style={{ width: '100%', aspectRatio: '16 / 9' }}>
        <Video src={"https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/highest.mp4"} playsInline />
      </VideoSkin>
    </VideoPlayer>
  );
}

```

From [page.tsx](https://videojs.org/docs/framework/react/) · [Find projects using @videojs/react →](https://dashboard.exa.ai/playground/search?q=%40videojs/react%20GitHub%20projects)

### @u-wave/react-vimeo

[GitHub](https://github.com/u-wave/react-vimeo) · [npm](https://www.npmjs.com/package/@u-wave/react-vimeo) · [Docs](https://registry.npmjs.org/@u-wave/react-vimeo/latest)

Vimeo player component for React.

- Downloads / mo: 779.6K
- Stars: 229
- Last release: 0.9.12
- License: MIT
- Capabilities: [From the @u-wave/react-vimeo docs](https://registry.npmjs.org/@u-wave/react-vimeo/latest)

```sh
npm install @u-wave/react-vimeo@0.9.12
```

**Quickstart**

```tsx
import Vimeo from "@u-wave/react-vimeo";

export default function App() {
  return <Vimeo video="https://vimeo.com/76979871" />;
}

```

From [README.md](https://registry.npmjs.org/@u-wave/react-vimeo/latest) · [Find projects using @u-wave/react-vimeo →](https://dashboard.exa.ai/playground/search?q=%40u-wave/react-vimeo%20GitHub%20projects)

## FAQ

### Which React video player library should I use?

[react-player](#reactplayer) suits one component that plays file URLs and hosted video. [@mux/mux-player-react](#mux-player-react) suits video hosted on Mux with playback analytics. [@vidstack/react](#vidstack-react) suits custom players built from components and layouts.

### How do I embed YouTube in React?

[react-youtube](#react-youtube) provides a YouTube player component for React. [react-lite-youtube-embed](#react-lite-youtube-embed) provides a lighter YouTube embed that is private by default.

### What is react-player?

[react-player](#reactplayer) plays file URLs, YouTube, Vimeo, and Mux video through one React component. Its light option loads the player after a thumbnail click.

### What is Mux Player?

[@mux/mux-player-react](#mux-player-react) provides a React video player built on Mux Player and Media Chrome. It sends video and viewer metadata to Mux Data.

### Is Vidstack still maintained?

[@vidstack/react](#vidstack-react) receives security fixes only. Feature development has moved to Video.js.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best React video player libraries ReactPlayer Vidstack Plyr Mux code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
