Re: Which stream/transport does PC.oniceconnectionstatechange points to?

2014-10-15 13:25 GMT+02:00 Harald Alvestrand <harald@alvestrand.no>:
> If we ever add transport objects to the spec (not in version 1.0!), we
> should expect to see events fired related to single connections, but in
> version 1.0, the RTCIceConnectionState refers to the aggregate state, not
> the state of individual transports.


Yep. I would have not reported this if browsers behave in that way,
but AFAIR some browser fires
oniceconnectionstatechange(connected/completed) twice (I will recheck
it).

BTW, it is sad that I cannot know whether my video stream is connected
or not. Typically I wait until the "completed" event in order to begin
displaying the remote video, but it may happen that the remote video
has already connected but the audio has not, so I must wait until both
connect.

Well, hope we can manage per-transport events soon :)


-- 
Iñaki Baz Castillo
<ibc@aliax.net>

Received on Wednesday, 15 October 2014 11:37:08 UTC