@wireapp/avs 9.8.21 → 9.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avs_core.js +3 -3
- package/dist/avs_pc.js +8 -3
- package/package.json +1 -1
package/dist/avs_pc.js
CHANGED
|
@@ -718,7 +718,12 @@ function sdpCbrMap(sdp) {
|
|
|
718
718
|
outline = sdpLine + ";cbr=1";
|
|
719
719
|
}
|
|
720
720
|
else if (sdpLine.startsWith('a=ssrc-group:')) {
|
|
721
|
-
|
|
721
|
+
var group = sdpLine;
|
|
722
|
+
// in case of only one ssrc in group (no nack/rtx), remove attribute
|
|
723
|
+
var spaces = group.trim().split(' ').length;
|
|
724
|
+
if (spaces < 3) {
|
|
725
|
+
outline = null;
|
|
726
|
+
}
|
|
722
727
|
}
|
|
723
728
|
if (outline != null) {
|
|
724
729
|
sdpLines.push(outline);
|
|
@@ -936,10 +941,10 @@ function pc_RemoveUserInfo(hnd, labelPtr) {
|
|
|
936
941
|
}
|
|
937
942
|
function extractSSRCs(pc, sdp) {
|
|
938
943
|
sdp.split('\r\n').forEach(function (l) {
|
|
939
|
-
var m = l.match(/a=ssrc:(\d+)
|
|
944
|
+
var m = l.match(/a=ssrc:(\d+) msid:(.*) (.*)/);
|
|
940
945
|
if (m) {
|
|
941
946
|
var ssrc = m[1];
|
|
942
|
-
var label = m[
|
|
947
|
+
var label = m[3];
|
|
943
948
|
pc.streams[ssrc] = label;
|
|
944
949
|
}
|
|
945
950
|
});
|
package/package.json
CHANGED