Browse Source

fix(logging) Log all the ssrcs present in the source signaling.

Since the order of the ssrcs in the json-encoded message is not guaranteed to be in the correct SIM/FID order, log all the ssrcs.
dev1
Jaya Allamsetty 3 years ago
parent
commit
502aaf15b3
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      modules/xmpp/JingleHelperFunctions.js

+ 2
- 4
modules/xmpp/JingleHelperFunctions.js View File

157
             if (videoSources?.length) {
157
             if (videoSources?.length) {
158
                 for (let i = 0; i < videoSources.length; i++) {
158
                 for (let i = 0; i < videoSources.length; i++) {
159
                     videoRtpDescription.appendChild(_createSourceExtension(owner, videoSources[i]));
159
                     videoRtpDescription.appendChild(_createSourceExtension(owner, videoSources[i]));
160
+                    ssrcs.push(videoSources[i]?.s);
160
                 }
161
                 }
161
-
162
-                // Log only the first video ssrc per endpoint.
163
-                ssrcs.push(videoSources[0]?.s);
164
             }
162
             }
165
 
163
 
166
             if (videoSsrcGroups?.length) {
164
             if (videoSsrcGroups?.length) {
171
             if (audioSources?.length) {
169
             if (audioSources?.length) {
172
                 for (let i = 0; i < audioSources.length; i++) {
170
                 for (let i = 0; i < audioSources.length; i++) {
173
                     audioRtpDescription.appendChild(_createSourceExtension(owner, audioSources[i]));
171
                     audioRtpDescription.appendChild(_createSourceExtension(owner, audioSources[i]));
172
+                    ssrcs.push(audioSources[i]?.s);
174
                 }
173
                 }
175
-                ssrcs.push(audioSources[0]?.s);
176
             }
174
             }
177
 
175
 
178
             if (audioSsrcGroups?.length) {
176
             if (audioSsrcGroups?.length) {

Loading…
Cancel
Save