Skip to content

Instantly share code, notes, and snippets.

@jackypan1989
jackypan1989 / video.jsx
Created November 2, 2015 04:11 — forked from mikechau/video.jsx
videojs react component
var React = require('react');
var cx = require('classnames');
var vjs = require('video.js');
var _forEach = require('lodash/collection/forEach');
var _debounce = require('lodash/function/debounce');
var _defaults = require('lodash/object/defaults');
var DEFAULT_HEIGHT = 800;
var DEFAULT_WIDTH = 600;
var DEFAULT_ASPECT_RATIO = (9 / 16);