peerconnection.ts should look at oniceconnectionstatechange events, not onsignalingstatechange
So, this came up while playing with getStats and after having reported this issue to the WebRTC team:
https://code.google.com/p/webrtc/issues/detail?id=3665
Basically, what peerconnection.ts does now is listen for an approximation of when the connection has been successfully established:
if (this.pc_.signalingState === 'stable') {
this.completeConnection_();
}
That's why our adapter.js needs the silly looping code in its getStats call to inspect the connection endpoints -- the connection hasn't actually been reported stable yet.
We wanted to take out those three lines, and instead the connection will complete when the control data channel is ready. (Pull request here https://github.com/uProxy/uproxy-lib/pull/81) Will that affect this issue?
If we use a control data channel to monitor the connection state, then that would close this issue.
Dropping priority since we're now using the control channel to determine when the peerconnection is up and down.
@bemasc you have pull request out to fix this but perhaps it's obsolete now?
Moving this to Baxter since it doesn't seem to be an issue for initial release.
This is fixed in uproxy-lib 17.0.1.
Awesome. Thanks for merging and republishing.
On 17 December 2014 at 17:59, Benjamin M. Schwartz <[email protected]
wrote:
This is fixed in uproxy-lib 17.0.1.
— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/433#issuecomment-67412918.
Trevor Johnston Software Engineer, Google New York
(To be clear, if uproxy wants to guarantee the fix, it'll need a dependency version bump.)
Fixed by this commit: https://github.com/uProxy/uproxy-lib/commit/322116bc7f31f90846ba989d62f6529bf58332c5