addTrack or addStream is not working with react platform

218 views
Skip to first unread message

Ghanshyam Katriya

unread,
Feb 15, 2021, 3:21:51 AM2/15/21
to SIP.js
Hi!

Currently I'm using SDH of 0.16 with SIP.js 0.17 version. I'm using it this way : 
sessionDescriptionHandlerFactory: (session, option) => {
return new SessionDescriptionHandler.defaultFactory(session, option);
},

I'm not receiving addTrack or addStream event after receiving 200 Accepted from server while client is sending PRACK itself. With same SIP credentials, I'm able to make it work with Webphone developed using SIP.js

Does React SDK does not support those events or I've to look withing peerconnection of react-native-webrtc library?

James Criscuolo

unread,
Feb 19, 2021, 11:47:50 AM2/19/21
to SIP.js
I can't say definitively, but if you look at the sessiondescription handler code, you'll see that the peerConnection is used directly, and you can set up listeners on it. If you set up either of those two on the peer connection, and the event does not come out, the issue is outside the scope of SIP.js.

The other thing I can say regarding react-native-webrtc, they haven't not fully added transceivers yet, you can track that progress here: https://github.com/react-native-webrtc/react-native-webrtc/pull/773

Reply all
Reply to author
Forward
0 new messages