Giter Site home page Giter Site logo

larrysharpe / react-html5-video-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evgenity/react-html5-video-editor

0.0 1.0 0.0 2.67 MB

React / Redux video component with crop. Powers demo video editor at

Home Page: https://crop-video-online.com

License: GNU General Public License v3.0

HTML 0.89% JavaScript 52.28% CSS 46.83%

react-html5-video-editor's Introduction

react-html5-video-editor

React / redux video element with a crop marker. Crop markers emit Redux actions when dragged.

npm version Build Status Dependancies

preview

Features:

  • simple & clean
  • video crop
  • effect composer
  • numerous formats support
  • customizable

Do not hesitate to post an issue to request a feature (seriously).

Roadmap

  • enhanced video previews
  • effect composer
  • multiple tracks

Quickstart

Install

npm init
npm install react-html5-video-editor --save
ls node_modules/react-html5-video-editor/dist/react-html5-video-editor.js # include this in <script>-tag

Basic browser usage

<script type="text/javascript" src="js/react-html5-video-editor.js"></script>

<div id="root"></div>
<script type="text/javascript">
    ReactHtml5VideoEditor.render_editor('img/poster.png', 'video/small.mp4')
</script>

React usage

import {RdxVideo, Overlay, Controls} from 'react-html5-video-editor'
ReactDOM.render(
  <RdxVideo autoPlay loop muted poster="src/img/poster.png" store={store}>
    <Overlay />
    <Controls />
    <source src="src/video/small.mp4" type="video/mp4" />
  </RdxVideo>
  ,
  document.getElementById('root')
);

Configuration

RdxVideo.Props = {
	autoPlay: false,
	loop: false,
	controls: true,
	volume:	1.0,
	preload: "auto",
	cropEnabled: true;
}

License

Code released under GNU GPLv3

react-html5-video-editor's People

Contributors

evgenity avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.