Switching the video via renegotiate don't work

57 views
Skip to first unread message

Maxi

unread,
Dec 8, 2022, 10:58:35 AM12/8/22
to JsSIP
I am trying to stop and start camera with like this

this.videoToggle = function(video) {
const options = {
useUpdate: false,
rtcOfferConstraints: {
iceRestart: true,
offerToReceiveAudio: 1,
offerToReceiveVideo: video ? 1 : 0,
voiceActivityDetection: false
}
}
session.renegotiate(options, () => {
});
}

Maxi

unread,
Dec 9, 2022, 7:10:39 AM12/9/22
to JsSIP
The SDP is not changed. If we use video and then try to stop it in sdp still has video stream.
We try to remove the video stream but it still add it in SDP 

Iñaki Baz Castillo

unread,
Dec 9, 2022, 7:14:33 AM12/9/22
to js...@googlegroups.com
I'm afraid m= sections are NEVER removed from SDP due to how SDP
works, but that's something I cannot explain here. The thing is
whether such a m=video section is disabled/closed.
> --
> You received this message because you are subscribed to the Google Groups "JsSIP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jssip+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/15808441-3d2b-4955-bc28-70a9660a95f4n%40googlegroups.com.



--
Iñaki Baz Castillo
<i...@aliax.net>
Message has been deleted

Iñaki Baz Castillo

unread,
Dec 13, 2022, 3:20:39 AM12/13/22
to js...@googlegroups.com
What?

El El mar, 13 dic 2022 a las 8:34, Maxi <prolope....@gmail.com> escribió:
I am not agree the SDP should be updated. if you need to add or remove streams 
Reply all
Reply to author
Forward
0 new messages