You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the correct way to send an ice candidate as a description-info Jingle message using XMPP-FTW?
Currently I have a handler on my RTCPeerConnection object as follows:
peerConnection.onicecandidate = event => {
if (event.candidate) {
const sdpJson = sjj.toSessionJSON(peerConnection.localDescription.sdp, {
creators: 'initiator',
role: 'initiator',
direction: 'outgoing',
});
// not interested in sending application type data, only the transport type
sdpJson.contents.forEach(content => {
delete content.application;
});
const { peerJid, callId } = getJingleData(getState());
xmppFtwSocket.emit(
'xmpp.jingle.request',
{
to: peerJid,
type: 'set',
jingle: {
action: 'description-info',
sid: callId,
contents: action.sdpJson.contents,
},
},
(error, success) => {}
);
}
};
Therefore, I'm simply grabbing my localDescription when I have a new ice candidate, because the ice candidate will be in the description at that point. and I turn it into JSON and send it via XMPP-FTW. However, the original candidate, in event.candidate also contained keys sdpMLineIndex and sdpMid, which are not sent in XMPP-FTW.
What is the correct way to send an ice candidate as a description-info Jingle message using XMPP-FTW?
The text was updated successfully, but these errors were encountered:
What is the correct way to send an ice candidate as a
description-info
Jingle message using XMPP-FTW?Currently I have a handler on my RTCPeerConnection object as follows:
Therefore, I'm simply grabbing my
localDescription
when I have a new ice candidate, because the ice candidate will be in the description at that point. and I turn it into JSON and send it via XMPP-FTW. However, the original candidate, inevent.candidate
also contained keyssdpMLineIndex
andsdpMid
, which are not sent in XMPP-FTW.What is the correct way to send an ice candidate as a
description-info
Jingle message using XMPP-FTW?The text was updated successfully, but these errors were encountered: