sip.js.webaudiosessiondescriptionhandler.setreallocalmediastream.md

October 21, 2022 ยท View on GitHub

Home > sip.js > WebAudioSessionDescriptionHandler > setRealLocalMediaStream

WebAudioSessionDescriptionHandler.setRealLocalMediaStream() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Sets the original local media stream.

Signature:

setRealLocalMediaStream(stream: MediaStream): void;

Parameters

ParameterTypeDescription
streamMediaStreamMedia stream containing tracks to be utilized.

Returns:

void

Remarks

Only the first audio and video tracks of the provided MediaStream are utilized. Adds tracks if audio and/or video tracks are not already present, otherwise replaces tracks.