@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_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
- outline = null;
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+) label:(.*)/);
944
+ var m = l.match(/a=ssrc:(\d+) msid:(.*) (.*)/);
940
945
  if (m) {
941
946
  var ssrc = m[1];
942
- var label = m[2];
947
+ var label = m[3];
943
948
  pc.streams[ssrc] = label;
944
949
  }
945
950
  });
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "prepack": "prettier -w src/avs_wcall.ts && tsc && cp src/*.js src/*.d.ts dist/",
22
22
  "test": "karma start"
23
23
  },
24
- "version": "9.8.21"
24
+ "version": "9.9.4"
25
25
  }