Replies: 1 comment
-
Yes it is, by default
You should not read the description at an arbitrary time as it is populated asynchronously. You should either use the
It is not possible with WebRTC, you have to negotiate something, either data channels or tracks.
Yes you can open new data channels at any time, even after connection is completed. Of course data channels will only open when connected. Creating new data channels after the first one does not require new negotiation as they are negotiated in-band (creating new tracks requires it). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I am new to WebRTC, so I'm not confident about how it's supposed to work. I'd appreciate any help with understanding the following:
After running this code, I get the following output:
It appears that creating a data channel causes the onGatheringStateChange callback to be invoked (whereas adding a track doesn't). Is this the way it is intended to work?
After running this piece of code, description_before is set to an uninitialized optional, and description_after is initialized.
With this in mind, I have a few questions:
Is it possible/proper to formulate an RTC offer without any communication channels added? (If so, how can a local description of a peer without communication channels be accessed?)
Is it possible to open a communication channel after communication has been established?
Beta Was this translation helpful? Give feedback.
All reactions