Media channels in watchRTC are labelled based on the names assigned to them by WebRTC, which usually revolves around the SSRC of the streams.
In group sessions this can make figuring out which incoming channel comes from which participant in the session quite time consuming. To make this simpler, you can use watchRTC.mapTrack() API in the SDK to let watchRTC know what display name to use for the incoming streams:
Where id is the RTCMediaStreamTrack with the trackIdentifier we wish to map, and name is the display name to associate with it.
Using this will cause the incoming channels on that media stream to show the display name instead of the track identifier, making it easier to associate the incoming media with its original sender.
For example, if you want to map the track identified by “oUx4qq5T0xvng4vr9XISNwZnGv0cIl0xSGxJ”, to the display name “John Doe”, then we would use:
watchRTC.mapTrack("oUx4qq5T0xvng4vr9XISNwZnGv0cIl0xSGxJ", "John Doe");
Note: Your track identifier’s can be found in the property “trackIdentifier” in the “rtp-inbound” statistics report.