aliyun-rtc-sdk 7.1.1 → 7.1.2-beta.1

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.
@@ -1644,7 +1644,7 @@ function dt(r, a, e) {
1644
1644
  }(t);
1645
1645
  }
1646
1646
  var we = ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(we || {}), Ze = ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Ze || {}), k = ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), ur = ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(ur || {}), Et = ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(Et || {}), ui = ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(ui || {}), Ti = ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(Ti || {}), fe = ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(fe || {}), St = ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(St || {}), Ci = ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Ci || {});
1647
- const Li = "7.1.1";
1647
+ const Li = "7.1.2-beta.1";
1648
1648
  class it {
1649
1649
  static getVersionNumber() {
1650
1650
  let a = Li.split("."), e = "";
@@ -3770,7 +3770,7 @@ class Xo {
3770
3770
  get adaptInfo() {
3771
3771
  var e, t, i, s;
3772
3772
  let a = new qo.UAParser().getResult();
3773
- return { os_name: ((e = a.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = a.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = a.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((s = a.device.vendor) == null ? void 0 : s.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: a.browser.version || "", sdk_version: "7.1.1", version: "v1" };
3773
+ return { os_name: ((e = a.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = a.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = a.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((s = a.device.vendor) == null ? void 0 : s.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: a.browser.version || "", sdk_version: "7.1.2-beta.1", version: "v1" };
3774
3774
  }
3775
3775
  refreshAuthInfo(a) {
3776
3776
  this.authInfo = a;
@@ -3894,7 +3894,7 @@ const st = class st extends He {
3894
3894
  let s = this.packageCreater.createPublishPackage();
3895
3895
  s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
3896
3896
  const { tracks: n, resume: o } = i;
3897
- let c = "7.1.1";
3897
+ let c = "7.1.2-beta.1";
3898
3898
  c && (c = c.split("-")[0]), n.forEach((l) => {
3899
3899
  const { codec: d, ssrc: b } = l;
3900
3900
  l.userdata = JSON.stringify({ sdk_version: c, codec: d }), l.ssrc = `${b}`, o && (l.attr = { reason: "reconnect" });
@@ -6749,9 +6749,9 @@ const De = (Ve = class extends He {
6749
6749
  })), f && !A && (E = this.rts.getSubscribeVideoStats(h.streamUrl, u).then((C) => (C.packetsReceived > 0 && (S = Date.now()), C.framesDecoded > 0 ? (A = Date.now(), !0) : w < y ? (w++, new Promise((x) => setTimeout(() => x(R()), v))) : (V.event(`[${Ve.logName}]`, h.userId, "尝试获取首帧数据失败"), !1)))), Promise.resolve(E);
6750
6750
  };
6751
6751
  return R();
6752
- })(40, 100);
6753
- return _.then(() => {
6754
- S && this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, u, { fprt: S - d, ifsprtc: A ? A - d : 0, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d }), A && this.slsReporter.reportSubscribeFirstFrame(t === fe.Resume, i, s, u, { fvfrt: A - d, fp2fftc: A - S, ajsub: t === fe.Join ? 1 : 0, tffrtc: t === fe.Join ? A - this.localJoinTime : A - n, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", fvfdtc: A - d }), m && (this.slsReporter.reportConnectionLatencyEvent(at.FIRST_REMOTE, ht.DECODED, i, k.Audio, m), this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, k.Audio, { fprt: m - d, ifsprtc: m - d, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d }));
6752
+ })(20, 100);
6753
+ return _.then((y) => {
6754
+ S && this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, u, { fprt: S - d, ifsprtc: A ? A - d : 0, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d }), A && this.slsReporter.reportSubscribeFirstFrame(t === fe.Resume, i, s, u, { fvfrt: A - d, fp2fftc: A - S, ajsub: t === fe.Join ? 1 : 0, tffrtc: t === fe.Join ? A - this.localJoinTime : A - n, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", fvfdtc: A - d }), m && (this.slsReporter.reportConnectionLatencyEvent(at.FIRST_REMOTE, ht.DECODED, i, k.Audio, m), this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, k.Audio, { fprt: m - d, ifsprtc: m - d, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d })), y || this.subscribe(e, t, i, s, n);
6755
6755
  }), o && (yield Promise.race([_, kt(1500)])), l;
6756
6756
  });
6757
6757
  }
@@ -7005,7 +7005,7 @@ const ct = (Mt = class extends He {
7005
7005
  })), this.screenStreamInfo.on("videotrackended", () => I(this, null, function* () {
7006
7006
  yield this.stopLocalStream({ screen: !0 }), this.emit("trackended", $t.ScreenTrackEnded);
7007
7007
  })), this.pluginManager.on("added", (i) => I(this, null, function* () {
7008
- if (V.info(`[${Mt.logName}]`, "plugin added", i.name), !i.isSupported("7.1.1"))
7008
+ if (V.info(`[${Mt.logName}]`, "plugin added", i.name), !i.isSupported("7.1.2-beta.1"))
7009
7009
  return console.warn(`${i.name} is not supported!!!`), void i.emit("unsupported");
7010
7010
  try {
7011
7011
  yield i.init();