Home > sip.js > WebAudioSessionDescriptionHandler > setRealLocalMediaStream
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;
Parameter | Type | Description |
---|---|---|
stream | MediaStream | Media stream containing tracks to be utilized. |
Returns:
void
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.