WebRTC SFU: How to learn whom does the video track belongs to?

I want to know where’s every video track comes from in a webrtc sfu conference. I try to distinguish them by the ssrc but seems not work. For example, if A sends a video stream tag with ssrc1 to B, B will receive a new ssrc video track but not ssrc1. I think server has changed the ssrc before the dispatch.

This is correct. Each side is completely independent on SSRC and other details, however newer versions provide messages that contain information about the streams[1].

[1] https://blogs.asterisk.org/2018/09/05/enrich-your-conference-app-with-asterisk-enhanced-messaging-part-2/

1 Like

ok, thanks very much.