Re: Need to expose RTCSocket object

2013/9/3 Martin Thomson <martin.thomson@gmail.com>:
> The alternative is actually fairly straightforward:
>
> var conn = new RTCConnection(...);
> // ...send offers...
> // first answer
> conn.addRemoteCandidate(...);
> // second answer
> var conn2 = new RTCConnection(conn.localSocket, ...);
> conn2.addRemoteCandidate(...);
>
>
> It's not significantly different, or even much harder.  Except that
> you don't have to worry about the state of the first connection.

The problem above is that you must enter again the full list of media
streams (and maybe customized settings per RTCTrack, along with DTMF
stuff) in the second RTCConnection. That was the main purpose of the
clone() method: to clone the RTCTrack instances within the connection.


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

Received on Tuesday, 3 September 2013 17:15:58 UTC