Dureact is ReactJS video player for html5 compatible browsers
npm install dureact
import VideoPlayer from "dureact";
import {render} from "react-dom";
render(<VideoPlayer videoSrc="http://site.com/myawesomevideo.mp4"/>,
document.getElementById("myvideos"));
@import "node_modules/dureact/src/dist/css/style.css"; /* import dureact's style file */
<!-- include fontawesome css -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<div id="myvideos"></div>
startFrom - <Integer seconds> start point of video
<VideoPlayer videoSrc="..." startFrom={10} />
#contributing
https://github.com/Dzhakhar/react-video-player.git dureact
cd dureact
npm install
webpack --watch --progress --colors
google-chrome demo.html // open demo.html in your browser
import React from "react";
import VideoPlayer from "src/lib/js/videocomponents.jsx";