0.2.6 • Published 4 years ago
reactjs-video-player v0.2.6
Using this module
How to use
- npm install reactjs-video-player@0.2.5
- import VideoPlayer from 'reactjs-video-player';
Required properties
- 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 %
Option properties
- trackColor: this will style the video track
Notes:
- 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; }