Supports YouTube, SoundCloud, Facebook, Vimeo, Twitch, Streamable, Wistia, DailyMotion, Mixcloud, Vidyard, mp4, webm, ogv, mp3, HLS(m3u8), and DASH(mpd).
1. Installation.
# Yarn
$ yarn add react-media-viewer
# NPM
$ npm i react-media-viewer --save
2. Import the media player.
import Player from 'react-media-viewer';
3. Add the media player to your app.
const App = () => (
<Player url="/path/to/video.mp4"/>
);
4. Available player props.
Author:
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website:
License: