
Description
ReactPlayer is a React component that plays a wide range of media URLs, including file paths, HLS, DASH, YouTube, Vimeo, Wistia and Mux. It parses the URL you pass and loads the right player and any external SDK for that source. The README says that version 3 is a major update with a new architecture and many new features, and it is not backwards compatible with version 2, so it points to a migration guide. It also notes that maintenance is being taken over by Mux, a video API company, and that the library will remain open source, with more frequent fixes and releases over time. The component is controlled through props such as src, playing, loop, controls, playsInline and muted, and it reports events such as buffering and the media ending. Because browsers now block autoplay with sound, the README advises setting muted to true for autoplay, and it notes that some players, such as Facebook, cannot be unmuted until the user interacts with the video. If your build tool supports dynamic import and code splitting, the library lazy-loads only the player you need, which keeps the main bundle small. A minified build is available for projects that do not use npm modules. A demo page is linked, and the README covers the methods and the full prop list. The component is useful for adding video playback from several providers to a React app without writing a separate integration for each one.…
Highlights
- Plays file paths, HLS, DASH, YouTube, Vimeo, Wistia and Mux
- Props for playback, looping, controls and events
- Lazy-loads only the player that is needed
- Minified dist build for non-npm projects
Ratings & Reviews
No ratings yet
Be the first to rate react-player.
People also visit
react-native-youtube-iframe
A simple wrapper around the youtube iframe js API for react native
limeplay
Modern UI Library for building media players in React. Powered by Shaka Player

ts-video-player
A modern, framework-agnostic video player with deep stx integration
react-player FAQ
What sources does it play?
File paths, HLS, DASH, YouTube, Vimeo, Wistia, Mux and other supported platforms.
Is version 3 compatible with version 2?
No. The README says version 3 has a new architecture and is not backwards compatible, so follow the migration guide.
Who maintains it now?
The README says maintenance is being taken over by Mux, and the library remains open source.
Why won't my video autoplay?
Browsers require videos to be muted for autoplay, so set muted to true, as the README advises.
What are the best react-player alternatives?
Popular alternatives to react-player include @u-wave/react-vimeo, react-howler and react-native-youtube-iframe. See all react-player alternatives












