dureact
Dureact is ReactJS video player for html5 compatible browsers
usage
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";
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<div id="myvideos"></div>
props
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";