Hi All:
There are two peers: peer-1 and peer-2. They both declared four variables like the following:
var dataSendChannelA;
var dataSendChannelB;
var dataReceiveChannelA;
var dataReceiveChannelB;
They both created two data channels from one peer connection like the following:
dataSendChannelA = peerConnection.createDataChannel(“channelA”, {reliable: false};
dataSendChannelB = peerConnection.createDataChannel(“channelB”, {reliable: false};
When peer-1 is ready to connect to the peer-2's data channels, I only know the following:
peerConnection.ondatachannel = function (event) {
dataReceiveChannel = event.channel;
}
What I do not know is how to get both dataChannelA and dataChannelB connected with the corresponding peer-2's channels. I am guessing that the “event” object should have the channel ID/label information, but I do not know how to get to it.
Help is greatly appreciated.
-wei
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/df5bc883-308e-42f9-bd64-aa0aba98cf08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/015d82bf-3bcb-4bf2-b43d-f26a141a7991%40googlegroups.com.