React video player libraries

Updated Nov 2026

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

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

LibraryMonthly downloadsStarsLast releaseLicense
@remotion/player
13.2M
74.3KNov 2026Remotion License
@mux/mux-player-react
12.6M
363Oct 2026MIT
react-player
12.2M
10.3KNov 2025MIT
react-youtube
3.8M
1.9KNov 2022MIT
@vidstack/react
2.3M
3.7KOct 2026MIT
react-lite-youtube-embed
1.5M
382Sep 2026MIT
@videojs/react
1.1M
40.2KNov 2026Apache-2.0
@u-wave/react-vimeo
779.6K
229Dec 2024MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

@remotion/player

Embeds a Remotion preview in a React app.

Downloads / mo
13.2M
Stars
74.3K
Last release
4.0.545
License
Remotion License

Quickstart

From Player.d.ts
$ npm install @remotion/player@4.0.545
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 />;
}

@remotion/player examples

From open-source projects on GitHub

@mux/mux-player-react

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

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.

Limitations

  • 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.

Quickstart

From README.md
$ npm install @mux/mux-player-react@3.14.1
import MuxPlayer from "@mux/mux-player-react";

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

@mux/mux-player-react examples

From open-source projects on GitHub

react-player

Plays file URLs and hosted video through one React component.

Downloads / mo
12.2M
Stars
10.3K
Last release
3.4.0
License
MIT

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.

Limitations

  • 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.

Quickstart

From README.md
$ npm install react-player@3.4.0
import ReactPlayer from "react-player";

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

Provides a YouTube player component for React.

Downloads / mo
3.8M
Stars
1.9K
Last release
10.1.0
License
MIT

Quickstart

From README.md
$ npm install react-youtube@10.1.0
import YouTube from "react-youtube";

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

react-youtube examples

From open-source projects on GitHub

@vidstack/react

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

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.

Limitations

  • 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.

Quickstart

From player.tsx
$ npm install @vidstack/react@1.15.7
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>
  );
}

@vidstack/react examples

From open-source projects on GitHub

react-lite-youtube-embed

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

Downloads / mo
1.5M
Stars
382
Last release
3.7.0
License
MIT

Quickstart

From README.md
$ npm install react-lite-youtube-embed@3.7.0
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"
    />
  );
}

react-lite-youtube-embed examples

From open-source projects on GitHub

@videojs/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

Quickstart

From page.tsx
$ npm install @videojs/react@10.5.0
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>
  );
}

@u-wave/react-vimeo

Vimeo player component for React.

Downloads / mo
779.6K
Stars
229
Last release
0.9.12
License
MIT

Quickstart

From README.md
$ npm install @u-wave/react-vimeo@0.9.12
import Vimeo from "@u-wave/react-vimeo";

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

FAQ

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

react-youtube provides a YouTube player component for React. react-lite-youtube-embed provides a lighter YouTube embed that is private by default.

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

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

@vidstack/react receives security fixes only. Feature development has moved to Video.js.

For coding agents

Found your video player library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official