Home > sip.js > SessionDescriptionHandler > setLocalMediaStream
Sets the peer connection's sender tracks and local media stream tracks.
Signature:
protected setLocalMediaStream(stream: MediaStream): Promise<void>;
Parameter | Type | Description |
---|---|---|
stream | MediaStream |
Media stream containing tracks to be utilized. |
Returns:
Promise<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.