react-stream-manager

The StreamManager for React Web Application

Usage no npm install needed!

<script type="module">
  import reactStreamManager from 'https://cdn.skypack.dev/react-stream-manager';
</script>

README

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