@apirtc/mui-react-lib v1.1.0
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')Contribute
You need to get access in write mode to the repository.
The 'developers' team has access.
Then work on a branch and submit merge requests to main branch.
Release a new version
run
npm run test, making sure tests passed, and code coverage as high as possible.Update README documentation section if relevant.
Update package.json version number.
Update CHANGELOG accordingly.
run
npm run buildrun
npm publish --access public
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago