Quellcode durchsuchen

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 vor 3 Jahren
Ursprung
Commit
502aaf15b3
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 2
    4
      modules/xmpp/JingleHelperFunctions.js

+ 2
- 4
modules/xmpp/JingleHelperFunctions.js Datei anzeigen

@@ -157,10 +157,8 @@ export function expandSourcesFromJson(iq, jsonMessageXml) {
157 157
             if (videoSources?.length) {
158 158
                 for (let i = 0; i < videoSources.length; i++) {
159 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 164
             if (videoSsrcGroups?.length) {
@@ -171,8 +169,8 @@ export function expandSourcesFromJson(iq, jsonMessageXml) {
171 169
             if (audioSources?.length) {
172 170
                 for (let i = 0; i < audioSources.length; i++) {
173 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 176
             if (audioSsrcGroups?.length) {

Laden…
Abbrechen
Speichern