浏览代码

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 年前
父节点
当前提交
502aaf15b3
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      modules/xmpp/JingleHelperFunctions.js

+ 2
- 4
modules/xmpp/JingleHelperFunctions.js 查看文件

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) {

正在加载...
取消
保存