@apirtc/mui-react-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

mui-react-lib

This library offers React/MUI components to be used along with ApiRTC objects.

Install

npm install @apirtc/mui-react-lib

Also you will need to add

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />

in index.html <head> to make Icons work.

Components

Stream

Use it to display any ApiRTC Stream. Example:

import { MuteButton, Stream, Video } from '@apirtc/mui-react-lib'

<Stream stream={stream}
        muted={false}
        controls={<><MuteButton /></>}>
        <Video />
</Stream>

Available children:

<Audio />
<Video />

Available controls:

<AudioEnableButton/>
<MuteButton />
<SnapshotButton />
<TorchButton />
<VideoEnableButton/>

Configure log level

Available log levels:

  • debug
  • info
  • warn
  • error

from web app code:

import { setLogLevel } from '@apirtc/mui-react-lib'

setLogLevel('warn')

from console:

setApirtcMuiReactLibLogLevel('debug')

Package Sidebar

Install

npm i @apirtc/mui-react-lib

Weekly Downloads

38

Version

1.0.14

License

MIT

Unpacked Size

249 kB

Total Files

83

Last publish

Collaborators

  • apizee