Re: [webrtc-pc] RTCPeerConnection lacks identity marker beyond current process

If you need to access a specific `RTCPeerConnection` by `id` or `name`, you first need to have a map/object to index them. Again, there is no `window.getRTCPeerConnectionById(id)` method in the WebRTC API.

So, you need a map/object to index them. And if you have that you can index them in any way:

```js
var peerconnection1 = new RTCPeerConnection(...);

myPeerConnectionsMap = {
   'pc1' : peerconnection1
};
```

This is something you can do in your own application without the need of polluting the whole WebRTC spec with not needed `ids`.

-- 
GitHub Notification of comment by ibc
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1775#issuecomment-366749745 using your GitHub account

Received on Monday, 19 February 2018 16:54:58 UTC