react-stream-manager
v1.0.6
Published
The StreamManager for React Web Application
Downloads
9
Readme
react-stream-manager
The StreamManager for React Web Application
Support the project
Install
npm install --save react-stream-manager
Import module
Import specified module
import { StreamManager } from 'react-stream-manager';
Examples
import { StreamManager } from 'react-stream-manager';
const streamManager = new StreamManager({
streamKeys: {
display: 'd',
camera: 'c',
microphone: 'm'
},
startFns: {
display: {
fn: async () => {
// TODO get the display media stream
},
args: [],
},
camera: {
fn: async () => {
// TODO get the camera media stream
},
args: [],
},
microphone: {
fn: async () => {
// TODO get the microphone stream
},
args: [],
}
}
});
Docs
License
MIT © samick17