SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

sessionDescriptionHandler.remoteMediaStream.getVideoTracks() not fully populated

Open InnovateAsterisk opened this issue 2 years ago • 0 comments

Describe the bug session.sessionDescriptionHandler.remoteMediaStream is not populated with all the video streams. When a session is re-invited with more than one video stream, only the last video stream is active, and only the last video stream is added to session.sessionDescriptionHandler.remoteMediaStream as a track.

Logs image

To Reproduce (if possible)

  1. Re-invte the session with more then one video stream, and attach a handler for addtrack to the PeerConnection.
  2. console.log(session.sessionDescriptionHandler.remoteMediaStream.getVideoTracks());

Expected behavior session.sessionDescriptionHandler.remoteMediaStream.getVideoTracks() should be populated with all the video tacks in that session.

Observed behavior Only the last video track in the SDP is included in the array. Others are stopped.

InnovateAsterisk avatar Nov 16 '21 11:11 InnovateAsterisk