SIP.js
SIP.js copied to clipboard
sessionDescriptionHandler.remoteMediaStream.getVideoTracks() not fully populated
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
To Reproduce (if possible)
- Re-invte the session with more then one video stream, and attach a handler for addtrack to the PeerConnection.
-
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.