- npm install reactjs-video-player@0.2.5
- import VideoPlayer from 'reactjs-video-player';
- video: the source for the video
- type: the type of video such as 'video/mp4'
- videoWidth: this can any type of measurement such as px, rem and %
- videoHeight: this can any type of measurement such as px, rem and %
- trackColor: this will style the video track
- Make sure to install version >= 0.2.5, or this module will not work.
- If you would like to style the thumb for the video track you will need to use !important to override the style. For example, on chrome the style would be: input::-webkit-slider-thumb { background: rgb(248, 14, 1) !important; }