Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 933 Bytes

sip.js.sessiondescriptionhandler.setlocalmediastream.md

File metadata and controls

28 lines (16 loc) · 933 Bytes

Home > sip.js > SessionDescriptionHandler > setLocalMediaStream

SessionDescriptionHandler.setLocalMediaStream() method

Sets the peer connection's sender tracks and local media stream tracks.

Signature:

protected setLocalMediaStream(stream: MediaStream): Promise<void>;

Parameters

Parameter Type Description
stream MediaStream Media stream containing tracks to be utilized.

Returns:

Promise<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.