W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2012

Re: Draft of alternative JSEP API proposal

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Tue, 27 Mar 2012 11:04:23 +0200
Message-ID: <4F718297.5080202@ericsson.com>
To: Li Li <Li.NJ.Li@huawei.com>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
Hi

Thanks for your questions.

On 03/27/2012 04:00 AM, Li Li wrote:
> - Introduce a PeerConnection id that's included in every signaling
>
> message to distinguish a locally produced signaling message from a
>
> remotely produced one. (Section 4)
>
> For the browser to
>
> know if an offer or answer was created locally, each PeerConnection
>
> instance is assigned an internal unique identifier that is also included
>
> in the signaling message header (#1 above).
>
> Adam,
>
> Thanks for the proposal. The above paragraphs suggest that the id has
> two purposes:
>
> 1)to distinguish a local offer/answer from a remote one;
>
> 2)to distinguish each PeerConnection object;
>
> Could you elaborate on the format of the id, and how 1) is achieved
> based on the format?

The format of the id is currently the same as for MediaStream labels 
(basically a UUID string) [1].

1) is done by comparing the id of the signaling message being processed 
with the id of the PeerConnection object that's processing the message. 
If the ids are equal, then the message is of local origin, otherwise 
it's a remotely produced message.

> Why do we need to support 2) as well?

I would say that 1) is the only purpose I intended. If we exposed the id 
as an JavaScript attribute it could be used to distinguish between 
different PeerConnection instances in a page, but I don't see a need for 
that at the moment.

Please let me know if you have any more questions.

BR
Adam

[1] 
http://lists.w3.org/Archives/Public/public-webrtc/2012Mar/att-0049/webrtc_jsep_easy1-2012-03-14.html#peerconnection-id
Received on Tuesday, 27 March 2012 09:10:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 09:10:26 GMT