player-dnt
TypeScript icon, indicating that this package has built-in type declarations

1.3.8 • Public • Published

player-dnt

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save player-dnt or yarn add player-dnt

Usage

import React, { Component } from 'react'

import MyComponent from 'player-dnt'
import 'player-dnt/dist/index.css'

class Example extends Component {
  render() {
    return <PlayerStream
          type="rtc"
          cam={{
            id: cameras[0].id,
            name: cameras[0].name,
            status: 'normal',
          }}
          controlBar={{
            follow: { unFollow: () => console.log('') },
            ptz: { togglePTZ: () => console.log('') },
            theaterMode: {
              isTheaterMode: false,
              toggleTheaterMode: () => console.log(''),
            },
            modeOptions: {
              changeStreamMode: () => console.log(''),
            },
          }}
        />
  }
}

License

MIT © Dungrichee

Readme

Keywords

none

Package Sidebar

Install

npm i player-dnt

Weekly Downloads

2

Version

1.3.8

License

MIT

Unpacked Size

645 kB

Total Files

89

Last publish

Collaborators

  • dungriche