@wireapp/avs 10.4.4 → 10.4.5

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 (trans.receiver.track.label === label_1) {
55
+ if (track.id === label_1) {
56
56
  if (uinfo) {
57
57
  uinfo.video_track_id = track.id;
58
58
  }
@@ -619,10 +619,7 @@ 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
- if (pc_env === ENV_FIREFOX)
623
- label = track.id;
624
- else
625
- label = track.label;
622
+ label = track.id;
626
623
  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"));
627
624
  if (!track.enabled)
628
625
  track.enabled = true;
@@ -669,10 +666,7 @@ function pc_Close(hnd) {
669
666
  var track = trans.receiver.track;
670
667
  if (track && track.kind === "audio") {
671
668
  var label = '';
672
- if (pc_env == ENV_FIREFOX)
673
- label = track.id;
674
- else
675
- label = track.label;
669
+ label = track.id;
676
670
  if (audioStreamHandler && pc.rtc) {
677
671
  pc_log(LOG_LEVEL_INFO, "pc_Close: calling ash(".concat(pc.convid.substring(0, 8), ", ").concat(label, ") with 0 streams"));
678
672
  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.4.4"
30
+ "version": "10.4.5"
31
31
  }