Skip to main content

StreamHelpers

A collection of utilities to identify and adjust specific tracks within the stream. There are numerous methods, but the following come in handy to toggle audio.

import { StreamHelpers } from 'eyeson';

StreamHelpers.toggleAudio(stream, enabled); // enabled can be true or false
// OR
StreamHelpers.disabledAudio(stream);
StreamHelpers.enableAudio(stream);

StreamHelpers.stopStream(stream);