sam-parsons / dash-react

react/dash.js integration component

Home Page:https://www.npmjs.com/package/dash-react

Repository from Github https://github.comsam-parsons/dash-reactRepository from Github https://github.comsam-parsons/dash-react

dash-react v1.0

react/dash.js integration component - full DASH settings supportv1.1

Install

npm install dash-react

Usage

import React from 'react';
import DASH from 'dash-react';

class VideoPlayer extends React.Component {
  render() {
    return (
      <DASH 
        className={"class-name"}
        controls={true}
        autoPlay={true}
        url={"url.mpd"}
        options={this.props.options} // see src/types/
      />
    );
  }
}

export default VideoPlayer;

About

react/dash.js integration component

https://www.npmjs.com/package/dash-react


Languages

Language:TypeScript 100.0%