react-html-video

0.0.1 • Public • Published

Getting started

npm install
npm start

Example

import React, { Component } from 'react'
import Video from './Video'
 
export default class VideoExample extends Component {
  constructor (props) {
    super(props)
 
    this.state = {}
  }
 
  render () {
    var videoSrc = [
      'bunny.mp4',
      'bunny.ogg'
    ]
 
    return (
      <Video
        width={400}
        src={videoSrc}
      />
    )
  }
}

Package Sidebar

Install

npm i react-html-video

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • sericaia