RendererManager
Class that provides API for creating and managing audio and video renderers.
Methods
createAudioRenderer
createAudioRenderer(stream: ):
Create an audio renderer for a stream.
Parameters
stream:
Audio stream
Returns
type:
createVideoRenderer
createVideoRenderer(stream: ):
Creates a video renderer for a stream.
Parameters
stream:
Returns
type:
removeByStreamId
removeByStreamId(id: string
): void
Removes a renderer by the id of the stream that the renderer currently renders.
Parameters
id:
string
Stream id
Returns
type:
void
updateSpeaker
updateSpeaker(streamId: string
, speakerId: string
): Promise<void>
Changes the audio renderer output to the specified device id.
Parameters
streamId:
string
Id of the stream which renderer should change the output
speakerId:
string
Output device id
Returns
type:
Promise<void>
Props
renderers
renderers: ReadonlyWatchable<Map<string, null | Renderer>>
Watchable property that allows getting audio and video renderers.
Audio and video renderers are stored in a map which keys are stream ids associated with a renderer.