1.0.6 • Published 3 years ago

react-stream-manager v1.0.6

Weekly downloads
147
License
MIT
Repository
github
Last release
3 years ago

react-stream-manager

The StreamManager for React Web Application

NPM JavaScript Style Guide

Support the project

Donate Donate

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

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago