-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add event to know when RTCPeerConnection has been created #421
Comments
Makes sense. However, my personal preference is moving to a complete SIP-WebRTC decoupled design, as noted in #427. Anyhow, after the |
Hi, @ibc, I would also add the 'peerconnection' event inside 'RTCSession::createRTCConnection', just for code cleanliness. Do you think this would have any side effect on any implementation? I can make the change in a minute. |
It makes sense |
Working on es6 branch. Will add this once it's merged. |
where is es6 branch? |
It was done 4 years ago and merged into master branch. |
🤦🏻♂️ 👍🏽 |
It's necessary to listen events like "iceconnectionstatechange", "addstream", etc. just after created.
The current "peerconnection" event is fired after call to "self.connection.addStream(stream);" so "addstream" event is already fired.
You could move "self.emit('peerconnection', { peerconnection: self.connection });" into "createRTCConnection" method.
The text was updated successfully, but these errors were encountered: