0.0.7 • Published 5 years ago

react-videojs-fancybox v0.0.7

Weekly downloads
538
License
MIT
Repository
github
Last release
5 years ago

react-videojs-fancybox

React wrapper for VideoJS inside Fancybox

NPM JavaScript Style Guide

Pure-React Alternative

This package is using VideoJS library combined with jQuery and fancybox library (jQuery-based).

If you are looking for react-based (react & videojs only), try to use react-modal-videojs instead.

Demo

Check the Demo

Install

npm install --save react-videojs-fancybox

Usage

import React, { Component } from 'react'

import FancyVideo from 'react-videojs-fancybox';

export default class App extends Component {
  render () {
    return (
      <div className='container'>
        <FancyVideo
          source="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4"
          poster="https://raw.githubusercontent.com/waskito/react-modal-videojs/master/example/public/preview.png"
          id={"sintel"}
         />
      </div>
    )
  }
}

License

MIT © waskito

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago