WebRTC - How to identify the source IDs (device IDs) for a MediaStream(Tracks)
<p>Once I have established a WebRTC connection, I can <code>getLocalStreams</code> and <code>getRemoteStreams</code>.</p>

<p>The streams have their own ID. Each stream is made of audio/video tracks <code>MediaStreamTrack</code>.</p>

<p>I'd like to be able to identify the device/source (ID) used for each track in order to avoid adding a stream that was already added to the connection.</p>

<p>In other word, I was thinking to make a check in <code>connection.onaddstream</code> that the stream track is not already present in my list of local or remote streams.</p>

<p>Any suggestions?</p>