webrtcbin: connection state change seems to be incorrect
Following #1142 (closed) I tried to see what connection state changes there are and wrote a piece of code like this (responder/answer side):
...
let webrtcbin = ElementFactory::make("webrtcbin", None).unwrap();
webrtcbin.connect_notify(
Some("connection-state"),
|webrtcbin, _spec| {
println!(
"Connection state {:#?}",
webrtcbin.get_property("connection-state").unwrap().get::<WebRTCPeerConnectionState>().unwrap()
);
}
);
...
Yet the only output I get is this:
Connection state Connecting
Connection state New
Which is not only backwards, it also doesn't have Connected
state anywhere despite browser client is in connected
state already and the rest seems to work properly.
I'm either doing it wrong of implementation is incorrect/incomplete. Ideas?