- From: Iñaki Baz Castillo via GitHub <sysbot+gh@w3.org>
- Date: Mon, 19 Feb 2018 16:54:57 +0000
- To: public-webrtc-logs@w3.org
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