@wireapp/avs 10.3.40 → 10.4.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
@@ -52,7 +52,7 @@ function callStreamHandler(pc, userid, clientid, ssrc, track_id) {
52
52
  pc.rtc.getTransceivers().forEach(function (trans) {
53
53
  var track = trans.receiver.track;
54
54
  pc_log(LOG_LEVEL_INFO, "vsh: label:".concat(track.label, " id:").concat(track.id, " looking for: ").concat(label_1));
55
- if (track.id === label_1) {
55
+ if (trans.receiver.track.label === label_1) {
56
56
  if (uinfo) {
57
57
  uinfo.video_track_id = track.id;
58
58
  }
@@ -619,7 +619,10 @@ function pc_Create(hnd, privacy, conv_type) {
619
619
  for (var _b = 0, _c = stream.getTracks(); _b < _c.length; _b++) {
620
620
  var track = _c[_b];
621
621
  if (track) {
622
- label = track.id;
622
+ if (pc_env === ENV_FIREFOX)
623
+ label = track.id;
624
+ else
625
+ label = track.label;
623
626
  pc_log(LOG_LEVEL_INFO, "onTrack: convid=".concat(pc.convid.substring(0, 8), " track=").concat(track.id, "/").concat(track.label, "=>").concat(label, " kind=").concat(track.kind, " enabled=").concat(track.enabled, "/").concat(track.muted, "/undefined/").concat(track.readyState, " remote=undefined"));
624
627
  if (!track.enabled)
625
628
  track.enabled = true;
@@ -666,7 +669,10 @@ function pc_Close(hnd) {
666
669
  var track = trans.receiver.track;
667
670
  if (track && track.kind === "audio") {
668
671
  var label = '';
669
- label = track.id;
672
+ if (pc_env == ENV_FIREFOX)
673
+ label = track.id;
674
+ else
675
+ label = track.label;
670
676
  if (audioStreamHandler && pc.rtc) {
671
677
  pc_log(LOG_LEVEL_INFO, "pc_Close: calling ash(".concat(pc.convid.substring(0, 8), ", ").concat(label, ") with 0 streams"));
672
678
  audioStreamHandler(pc.convid, hnd.toString() + label, null);
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "prepack": "prettier -w src/avs_wcall.ts && tsc && cp src/*.js src/*.d.ts dist/",
28
28
  "test": "karma start"
29
29
  },
30
- "version": "10.3.40"
30
+ "version": "10.4.4"
31
31
  }