react-video-component
v1.4.3
Published
Simple video component for react
Downloads
27
Readme
React video component
Development
npm install
npm run dev
Utilization
import ReactVideoComponent from 'react-video-component';
Warning
This repo should not be used in production.
How to
The component can have every listener the origin video tag has.
For example <video sources={[url..]} metadataloaded={this._onLoaded.bind(this)}/>
calls the function _onLoaded, with the event as argument.
The video is so accessible through event.target
.
A list of events can be found here.
Props:
Known issues
- Weird IE render issues. Custom controls will be disabled.