aliyun-rtc-sdk 6.13.4-beta.0 → 6.13.4-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.
@@ -8,7 +8,7 @@ var Ti = (r, n, e) => n in r ? Fn(r, n, { enumerable: !0, configurable: !0, writ
8
8
  for (var e of hi(n))
9
9
  fs.call(n, e) && Ti(r, e, n[e]);
10
10
  return r;
11
- }, pt = (r, n) => Vn(r, On(n));
11
+ }, gt = (r, n) => Vn(r, On(n));
12
12
  var Ft = (r, n) => {
13
13
  var e = {};
14
14
  for (var t in r)
@@ -1587,8 +1587,8 @@ function eo() {
1587
1587
  var Ye = I(j, Xe);
1588
1588
  Ye && e.isString(Ye) && (C = Ye);
1589
1589
  }
1590
- var xe = e.getFetchSnapshot(g, Xe, ue);
1591
- j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, S, C, L, xe, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, S, C, L, xe, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1590
+ var Se = e.getFetchSnapshot(g, Xe, ue);
1591
+ j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, S, C, L, Se, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, S, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
1594
1594
  }));
@@ -2226,7 +2226,7 @@ class jr {
2226
2226
  this.isDestroyed = !0;
2227
2227
  }
2228
2228
  }
2229
- var oe = /* @__PURE__ */ ((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))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), k = /* @__PURE__ */ ((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 || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), gt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(gt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), rt = /* @__PURE__ */ ((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))(rt || {}), Ie = [];
2229
+ var oe = /* @__PURE__ */ ((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))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), k = /* @__PURE__ */ ((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 || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), rt = /* @__PURE__ */ ((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))(rt || {}), Ie = [];
2230
2230
  for (var Ki = 0; Ki < 256; ++Ki)
2231
2231
  Ie.push((Ki + 256).toString(16).slice(1));
2232
2232
  function po(r, n = 0) {
@@ -2256,7 +2256,7 @@ function st(r, n, e) {
2256
2256
  return po(t);
2257
2257
  }
2258
2258
  var xi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(xi || {});
2259
- const yi = "6.13.4-beta.0", Ks = "web";
2259
+ const yi = "6.13.4-beta.1", Ks = "web";
2260
2260
  class Ue {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
@@ -3854,18 +3854,18 @@ function an() {
3854
3854
  ]);
3855
3855
  },
3856
3856
  _doProcessBlock: function(g, l) {
3857
- for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Fe = B, je = $, Xe = q, Ye = G, xe = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3857
+ for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Fe = B, je = $, Xe = q, Ye = G, Se = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
3858
  var Ce, Ze, Ct = d[ke];
3859
3859
  if (ke < 16)
3860
3860
  Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3861
3861
  else {
3862
- var dt = d[ke - 15], Qe = dt.high, nt = dt.low, Di = (Qe >>> 1 | nt << 31) ^ (Qe >>> 8 | nt << 24) ^ Qe >>> 7, oi = (nt >>> 1 | Qe << 31) ^ (nt >>> 8 | Qe << 24) ^ (nt >>> 7 | Qe << 25), ci = d[ke - 2], ze = ci.high, lt = ci.low, ui = (ze >>> 19 | lt << 13) ^ (ze << 3 | lt >>> 29) ^ ze >>> 6, Gt = (lt >>> 19 | ze << 13) ^ (lt << 3 | ze >>> 29) ^ (lt >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3862
+ var lt = d[ke - 15], Qe = lt.high, nt = lt.low, Di = (Qe >>> 1 | nt << 31) ^ (Qe >>> 8 | nt << 24) ^ Qe >>> 7, oi = (nt >>> 1 | Qe << 31) ^ (nt >>> 8 | Qe << 24) ^ (nt >>> 7 | Qe << 25), ci = d[ke - 2], ze = ci.high, ft = ci.low, ui = (ze >>> 19 | ft << 13) ^ (ze << 3 | ft >>> 29) ^ ze >>> 6, Gt = (ft >>> 19 | ze << 13) ^ (ft << 3 | ze >>> 29) ^ (ft >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3863
3863
  Ce = oi + Rn, Ze = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Ze = Ze + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Ze = Ze + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Ze, Ct.low = Ce;
3864
3864
  }
3865
- var Dn = xe & at ^ ~xe & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (xe >>> 14 | Pe << 18) ^ (xe >>> 18 | Pe << 14) ^ (xe << 23 | Pe >>> 9), Mn = (Pe >>> 14 | xe << 18) ^ (Pe >>> 18 | xe << 14) ^ (Pe << 23 | xe >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, ft = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, ft = ft + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, ft = ft + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, ft = ft + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
- Jt = Nt, _t = At, Nt = at, At = Et, at = xe, Et = Pe, Pe = Ye + We | 0, xe = Xe + ft + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = ft + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
3865
+ var Dn = Se & at ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, pt = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, pt = pt + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, pt = pt + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, pt = pt + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
+ Jt = Nt, _t = At, Nt = at, At = Et, at = Se, Et = Pe, Pe = Ye + We | 0, Se = Xe + pt + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = pt + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
3867
3867
  }
3868
- _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + xe + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + at + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3868
+ _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + at + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3869
3869
  },
3870
3870
  _doFinalize: function() {
3871
3871
  var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
@@ -8488,7 +8488,7 @@ class Br {
8488
8488
  return a;
8489
8489
  }
8490
8490
  }
8491
- var ht = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(ht || {}), xt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(xt || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ct = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ct || {}), be = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(be || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8491
+ var dt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(dt || {}), St = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(St || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ct = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ct || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8492
8492
  const La = 10, Na = 5e3, jt = class jt extends we {
8493
8493
  constructor(e) {
8494
8494
  super();
@@ -8607,7 +8607,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8607
8607
  */
8608
8608
  m(jt, "logName", "Socket");
8609
8609
  let Mr = jt;
8610
- var Se = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(Se || {});
8610
+ var ve = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(ve || {});
8611
8611
  class R0 {
8612
8612
  constructor(n, e) {
8613
8613
  m(this, "authInfo");
@@ -8864,7 +8864,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8864
8864
  */
8865
8865
  refreshUrl(e) {
8866
8866
  const t = this.packageCreater.createRefreshUrlPackage();
8867
- t.data = Y(pt(Y({}, t.data), {
8867
+ t.data = Y(gt(Y({}, t.data), {
8868
8868
  sessionid: t.header.sessionid
8869
8869
  }), e), this.sendPackage(t);
8870
8870
  }
@@ -8884,7 +8884,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8884
8884
  * @param pkg
8885
8885
  */
8886
8886
  sendPackage(e) {
8887
- [Se.KEEPALIVE, Se.RECONNECT, Se.JOINCHANNEL].includes(e.msgtype) || this.packageCache.set(e.tid, e), this.wsClient.send(e), e.msgtype !== Se.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!0, e.msgtype, e.tid, e);
8887
+ [ve.KEEPALIVE, ve.RECONNECT, ve.JOINCHANNEL].includes(e.msgtype) || this.packageCache.set(e.tid, e), this.wsClient.send(e), e.msgtype !== ve.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!0, e.msgtype, e.tid, e);
8888
8888
  }
8889
8889
  /**
8890
8890
  * 更新重连 payload
@@ -8902,7 +8902,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8902
8902
  let e = this.packageCreater.createJoinPackage();
8903
8903
  e.data.configure = {
8904
8904
  channelprofile: this.channelProfile
8905
- }, (this.channelProfile === xt.AliRtcSdkInteractiveLive || this.channelProfile === xt.AliRtcSdkInteractiveWithLowLatencyLive) && (e.data.configure.clientrole = this.clientRole), this.sendPackage(e);
8905
+ }, (this.channelProfile === St.AliRtcSdkInteractiveLive || this.channelProfile === St.AliRtcSdkInteractiveWithLowLatencyLive) && (e.data.configure.clientrole = this.clientRole), this.sendPackage(e);
8906
8906
  } else {
8907
8907
  this.stopKeepAlive();
8908
8908
  const e = this.packageCreater.createReconnectPackage(this.reconnectData);
@@ -8916,7 +8916,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8916
8916
  onMessage(e) {
8917
8917
  try {
8918
8918
  let t = JSON.parse(e.data);
8919
- this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== Se.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
8919
+ this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== ve.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
8920
8920
  } catch (t) {
8921
8921
  H.warn(`[${Ke.logName}] onMessage err`, t, e);
8922
8922
  }
@@ -8979,44 +8979,44 @@ const w0 = 3e4, Ke = class Ke extends we {
8979
8979
  * @param response
8980
8980
  */
8981
8981
  onRecvMessage(e) {
8982
- switch (e.msgtype !== Se.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
- case Se.JOINCHANNEL:
8982
+ switch (e.msgtype !== ve.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
+ case ve.JOINCHANNEL:
8984
8984
  this.onJoinResult(e);
8985
8985
  break;
8986
- case Se.KEEPALIVE:
8986
+ case ve.KEEPALIVE:
8987
8987
  this.onKeepAliveRsp();
8988
8988
  break;
8989
- case Se.PUBLISH:
8989
+ case ve.PUBLISH:
8990
8990
  this.onPublishResult(e);
8991
8991
  break;
8992
- case Se.NOTIFYJOIN:
8992
+ case ve.NOTIFYJOIN:
8993
8993
  this.onNotifyJoin(e);
8994
8994
  break;
8995
- case Se.NOTIFYSTATUS:
8995
+ case ve.NOTIFYSTATUS:
8996
8996
  this.onNotifyStatus(e);
8997
8997
  break;
8998
- case Se.LEAVECHANNEL:
8998
+ case ve.LEAVECHANNEL:
8999
8999
  this.onLeaveResult(e);
9000
9000
  break;
9001
- case Se.NOTIFYLEAVE:
9001
+ case ve.NOTIFYLEAVE:
9002
9002
  this.onNotifyLeave(e);
9003
9003
  break;
9004
- case Se.NOTIFYPUBLISH:
9004
+ case ve.NOTIFYPUBLISH:
9005
9005
  this.onNotifyPublish(e);
9006
9006
  break;
9007
- case Se.STATUSREPORT:
9007
+ case ve.STATUSREPORT:
9008
9008
  this.onStatusReport(e);
9009
9009
  break;
9010
- case Se.BYE:
9010
+ case ve.BYE:
9011
9011
  this.onBye(e);
9012
9012
  break;
9013
- case Se.ROLEUPDATE:
9013
+ case ve.ROLEUPDATE:
9014
9014
  this.onRoleUpdateResult(e);
9015
9015
  break;
9016
- case Se.REFRESHURL:
9016
+ case ve.REFRESHURL:
9017
9017
  this.onRefreshUrlResult(e);
9018
9018
  break;
9019
- case Se.RECONNECT:
9019
+ case ve.RECONNECT:
9020
9020
  this.onReconnectResult(e);
9021
9021
  break;
9022
9022
  }
@@ -9169,7 +9169,7 @@ var D0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, es = (r, n
9169
9169
  return t && i && D0(n, e, i), i;
9170
9170
  }, Be;
9171
9171
  const Ci = (Be = class extends we {
9172
- constructor(e, t, i, s = ht.prod) {
9172
+ constructor(e, t, i, s = dt.prod) {
9173
9173
  super();
9174
9174
  m(this, "messageCenter");
9175
9175
  m(this, "authInfo");
@@ -9186,7 +9186,7 @@ const Ci = (Be = class extends we {
9186
9186
  clientrole: t
9187
9187
  }
9188
9188
  };
9189
- const a = s === ht.pre ? xi.pre : xi.prod;
9189
+ const a = s === dt.pre ? xi.pre : xi.prod;
9190
9190
  this.roomServerUri = `wss://${a}/roomserver/v1/ws`;
9191
9191
  }
9192
9192
  /**
@@ -9258,7 +9258,7 @@ const Ci = (Be = class extends we {
9258
9258
  return new Promise((t, i) => {
9259
9259
  var s;
9260
9260
  this.messageCenter ? (this.messageCenter.once("onPublishResult", (a, c, o) => {
9261
- H.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(pt(Y({}, this.reconnectData), {
9261
+ H.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9262
9262
  publish: {
9263
9263
  users: [e]
9264
9264
  }
@@ -9379,7 +9379,7 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
9379
9379
  return;
9380
9380
  const { appId: e, channelId: t, userId: i, nonce: s = "", token: a, timestamp: c, sessionId: o, role: u } = this.authInfo;
9381
9381
  let h = B0;
9382
- this.env === ht.pre && (h = k0);
9382
+ this.env === dt.pre && (h = k0);
9383
9383
  const p = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${a}&timestamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
9384
9384
  fetch(p).then((f) => f.json()).then((f) => {
9385
9385
  var g, l;
@@ -9419,14 +9419,14 @@ var L0 = Object.defineProperty, N0 = Object.getOwnPropertyDescriptor, F0 = (r, n
9419
9419
  return t && i && L0(n, e, i), i;
9420
9420
  };
9421
9421
  class ts extends we {
9422
- constructor(e, t, i, s = ht.prod) {
9422
+ constructor(e, t, i, s = dt.prod) {
9423
9423
  super();
9424
9424
  m(this, "signaling");
9425
9425
  m(this, "authInfo");
9426
9426
  m(this, "userName");
9427
9427
  m(this, "channelProfile");
9428
9428
  m(this, "clientRole");
9429
- m(this, "env", ht.prod);
9429
+ m(this, "env", dt.prod);
9430
9430
  m(this, "maxConnectRetryCount");
9431
9431
  m(this, "stsManager");
9432
9432
  m(this, "slsReporter");
@@ -9791,20 +9791,20 @@ const mn = "customVideoProfile", xn = "customScreenProfile", Zt = {
9791
9791
  frameRate: 30,
9792
9792
  maxBitrate: 2600
9793
9793
  }, U0 = {
9794
- 1e4: be.AliEngineLocalDeviceExceptionTypeUnknown,
9795
- 2e4: be.AliEngineLocalDeviceExceptionTypeUnknown,
9796
- 10001: be.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9797
- 10002: be.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9798
- 10003: be.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9799
- 10005: be.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9800
- 10004: be.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9801
- 10006: be.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9802
- 10010: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9803
- 10011: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9804
- 10012: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9805
- 10013: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9806
- 10014: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9807
- 10019: be.AliEngineLocalDeviceExceptionTypeDisplayException
9794
+ 1e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9795
+ 2e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9796
+ 10001: ye.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9797
+ 10002: ye.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9798
+ 10003: ye.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9799
+ 10005: ye.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9800
+ 10004: ye.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9801
+ 10006: ye.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9802
+ 10010: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9803
+ 10011: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9804
+ 10012: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9805
+ 10013: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9806
+ 10014: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9807
+ 10019: ye.AliEngineLocalDeviceExceptionTypeDisplayException
9808
9808
  }, H0 = (r) => r.getAudioTracks()[0];
9809
9809
  function Va(r) {
9810
9810
  var n;
@@ -9838,7 +9838,7 @@ function Fr(r) {
9838
9838
  }
9839
9839
  return n;
9840
9840
  }
9841
- function St(r) {
9841
+ function vt(r) {
9842
9842
  return new Promise((n) => setTimeout(n, r));
9843
9843
  }
9844
9844
  function Oa(r, n, e = 1e3, t = (i) => !0) {
@@ -9864,7 +9864,7 @@ function j0(r, n) {
9864
9864
  return t;
9865
9865
  }
9866
9866
  const Sn = (r, n, e = !1) => {
9867
- const t = () => (r.muted = !0, Promise.race([St(500), r._playPromise || Promise.resolve()]).catch(() => {
9867
+ const t = () => (r.muted = !0, Promise.race([vt(500), r._playPromise || Promise.resolve()]).catch(() => {
9868
9868
  }).then(() => {
9869
9869
  let i;
9870
9870
  return e && r.srcObject === n ? i = Promise.resolve() : (r.load(), r.srcObject = n, i = r.play(), r._playPromise = i), i;
@@ -9887,7 +9887,7 @@ const Sn = (r, n, e = !1) => {
9887
9887
  }, 0);
9888
9888
  });
9889
9889
  }, tt = (r) => {
9890
- Promise.race([St(100), r._playPromise || Promise.resolve()]).catch(() => {
9890
+ Promise.race([vt(100), r._playPromise || Promise.resolve()]).catch(() => {
9891
9891
  }).then(() => {
9892
9892
  r.srcObject = null, r._playPromise = void 0;
9893
9893
  });
@@ -10104,8 +10104,8 @@ class Xt extends we {
10104
10104
  this.state = e, this.time = Date.now(), this.emit("change", t, e, Math.floor((this.time - i) / 1e3));
10105
10105
  }
10106
10106
  }
10107
- var bt;
10108
- const ge = (bt = class extends pn {
10107
+ var ut;
10108
+ const ge = (ut = class extends pn {
10109
10109
  constructor(e) {
10110
10110
  const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: a, audioVolumeIndicationInterval: c, parameter: o } = e;
10111
10111
  super("", "", t, c);
@@ -10306,7 +10306,7 @@ const ge = (bt = class extends pn {
10306
10306
  }
10307
10307
  clear() {
10308
10308
  return w(this, null, function* () {
10309
- Pi(bt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10309
+ Pi(ut.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10310
10310
  });
10311
10311
  }
10312
10312
  resetElement(e) {
@@ -10409,7 +10409,7 @@ const ge = (bt = class extends pn {
10409
10409
  videoElement: t
10410
10410
  });
10411
10411
  if (!s) {
10412
- H.info(`[${bt.logName}]`, "preview no stream founded");
10412
+ H.info(`[${ut.logName}]`, "preview no stream founded");
10413
10413
  return;
10414
10414
  }
10415
10415
  return Sn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
@@ -10560,8 +10560,12 @@ const ge = (bt = class extends pn {
10560
10560
  var u;
10561
10561
  if (!this.joined)
10562
10562
  return;
10563
- this.createCallId();
10564
10563
  const i = yield this.streamManager.publishStreams, { audio: s, video: a, videoSmall: c, screen: o } = i;
10564
+ if (!s && !a && !c && !o) {
10565
+ H.event(`[${ut.logName}]`, "startPublish no stream founded");
10566
+ return;
10567
+ }
10568
+ this.createCallId();
10565
10569
  try {
10566
10570
  const h = (/* @__PURE__ */ new Date()).getTime();
10567
10571
  s && this.audioPubState.setState(Z.AliRtcStatePublishing), a && this.videoPubState.setState(Z.AliRtcStatePublishing), c && this.videoSmallPubState.setState(Z.AliRtcStatePublishing), o && this.screenPubState.setState(Z.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
@@ -10573,7 +10577,7 @@ const ge = (bt = class extends pn {
10573
10577
  }
10574
10578
  s && (this.trackTraceIdMap[k.Audio] = p, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = p), a && (this.trackTraceIdMap[k.VideoLarge] = p, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = p, this.reportScreenProfile());
10575
10579
  const f = {
10576
- type: gt.Add,
10580
+ type: mt.Add,
10577
10581
  userid: this.userId,
10578
10582
  sessionid: "",
10579
10583
  displayname: this.name,
@@ -10642,7 +10646,7 @@ const ge = (bt = class extends pn {
10642
10646
  !x,
10643
10647
  x ? x.msid : b == null ? void 0 : b.msid
10644
10648
  )), i = {
10645
- type: gt.Add,
10649
+ type: mt.Add,
10646
10650
  userid: this.userId,
10647
10651
  sessionid: "",
10648
10652
  displayname: this.name,
@@ -10674,7 +10678,7 @@ const ge = (bt = class extends pn {
10674
10678
  let s = e;
10675
10679
  if (this.dc) {
10676
10680
  const c = e, { tracks: u } = c, h = Ft(c, ["tracks"]);
10677
- s = pt(Y({}, h), {
10681
+ s = gt(Y({}, h), {
10678
10682
  tracks: [
10679
10683
  ...u,
10680
10684
  {
@@ -10712,7 +10716,7 @@ const ge = (bt = class extends pn {
10712
10716
  const h = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
10713
10717
  a && (this.audioPubState.setState(Z.AliRtcStatePublished), this.reportAudioProfile(), this.trackTraceIdMap[k.Audio] = h), c && (this.videoPubState.setState(Z.AliRtcStatePublished), this.reportVideoProfile(), this.trackTraceIdMap[k.VideoLarge] = h), o && (this.videoSmallPubState.setState(Z.AliRtcStatePublished), this.trackTraceIdMap[k.VideoSmall] = h), u && (this.screenPubState.setState(Z.AliRtcStatePublished), this.reportScreenProfile(), this.trackTraceIdMap[k.Screen] = h), this.streamTracks = this.rtsManager.publishingTracks;
10714
10718
  const p = {
10715
- type: gt.Add,
10719
+ type: mt.Add,
10716
10720
  userid: this.userId,
10717
10721
  sessionid: "",
10718
10722
  displayname: this.name,
@@ -10740,7 +10744,7 @@ const ge = (bt = class extends pn {
10740
10744
  try {
10741
10745
  yield this.rtsManager.publishReplace(this.url, e, t), this.streamTracks = this.rtsManager.publishingTracks;
10742
10746
  const i = {
10743
- type: gt.Replace,
10747
+ type: mt.Replace,
10744
10748
  userid: this.userId,
10745
10749
  sessionid: "",
10746
10750
  pubid: this.publishId,
@@ -10765,7 +10769,7 @@ const ge = (bt = class extends pn {
10765
10769
  publishDeleteTracks(e) {
10766
10770
  return w(this, null, function* () {
10767
10771
  const t = {
10768
- type: gt.Delete,
10772
+ type: mt.Delete,
10769
10773
  userid: this.userId,
10770
10774
  sessionid: "",
10771
10775
  displayname: this.displayname,
@@ -10791,7 +10795,7 @@ const ge = (bt = class extends pn {
10791
10795
  O.ERR_INNER,
10792
10796
  "publish stop failed, previous localStream is required for publishing stopping"
10793
10797
  );
10794
- H.info(`[${bt.logName}]`, "publishStop", { url: this.url });
10798
+ H.info(`[${ut.logName}]`, "publishStop", { url: this.url });
10795
10799
  const e = (/* @__PURE__ */ new Date()).getTime();
10796
10800
  try {
10797
10801
  const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, a = this.hasScreenTrackInMS;
@@ -10799,7 +10803,7 @@ const ge = (bt = class extends pn {
10799
10803
  this.reportPublishMonitor(o);
10800
10804
  }), this.streamTracks = [];
10801
10805
  const c = {
10802
- type: gt.Stop,
10806
+ type: mt.Stop,
10803
10807
  userid: this.userId,
10804
10808
  sessionid: "",
10805
10809
  displayname: this.displayname,
@@ -10821,7 +10825,7 @@ const ge = (bt = class extends pn {
10821
10825
  return w(this, null, function* () {
10822
10826
  const e = (/* @__PURE__ */ new Date()).getTime();
10823
10827
  let t = {
10824
- type: gt.UnPublish,
10828
+ type: mt.UnPublish,
10825
10829
  userid: this.userId,
10826
10830
  sessionid: "",
10827
10831
  displayname: this.displayname,
@@ -11053,7 +11057,7 @@ const ge = (bt = class extends pn {
11053
11057
  }, /**
11054
11058
  * @ignore
11055
11059
  */
11056
- m(bt, "logName", "LocalUser"), bt);
11060
+ m(ut, "logName", "LocalUser"), ut);
11057
11061
  me([
11058
11062
  D()
11059
11063
  ], ge.prototype, "clearPublishState", 1);
@@ -11121,7 +11125,7 @@ me([
11121
11125
  D(([r, n, e]) => [r.length, n, e])
11122
11126
  ], ge.prototype, "sendSEI", 1);
11123
11127
  let ja = ge;
11124
- var mt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(mt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), kt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(kt || {});
11128
+ var xt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(xt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), kt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(kt || {});
11125
11129
  const $0 = (r) => {
11126
11130
  const n = new MediaStream();
11127
11131
  return n.addTrack(r), n;
@@ -11153,7 +11157,7 @@ class bi extends we {
11153
11157
  msid: "",
11154
11158
  pt: 0,
11155
11159
  red: 0,
11156
- codec: mt.UNKNOWN
11160
+ codec: xt.UNKNOWN
11157
11161
  });
11158
11162
  m(this, "videoLargeInfo", {
11159
11163
  subscribeState: re.NotSubscribe,
@@ -11161,7 +11165,7 @@ class bi extends we {
11161
11165
  msid: "",
11162
11166
  pt: 0,
11163
11167
  red: 0,
11164
- codec: mt.UNKNOWN
11168
+ codec: xt.UNKNOWN
11165
11169
  });
11166
11170
  m(this, "videoSmallInfo", {
11167
11171
  subscribeState: re.NotSubscribe,
@@ -11169,7 +11173,7 @@ class bi extends we {
11169
11173
  msid: "",
11170
11174
  pt: 0,
11171
11175
  red: 0,
11172
- codec: mt.UNKNOWN
11176
+ codec: xt.UNKNOWN
11173
11177
  });
11174
11178
  m(this, "screenInfo", {
11175
11179
  subscribeState: re.NotSubscribe,
@@ -11177,7 +11181,7 @@ class bi extends we {
11177
11181
  msid: "",
11178
11182
  pt: 0,
11179
11183
  red: 0,
11180
- codec: mt.UNKNOWN
11184
+ codec: xt.UNKNOWN
11181
11185
  });
11182
11186
  m(this, "dataInfo", {
11183
11187
  subscribeState: re.NotSubscribe,
@@ -11185,7 +11189,7 @@ class bi extends we {
11185
11189
  msid: "",
11186
11190
  pt: 0,
11187
11191
  red: 0,
11188
- codec: mt.UNKNOWN
11192
+ codec: xt.UNKNOWN
11189
11193
  });
11190
11194
  m(this, "audioVolume", 1);
11191
11195
  m(this, "audioMuted", !1);
@@ -11328,7 +11332,7 @@ class bi extends we {
11328
11332
  return this.audioInfo.codec;
11329
11333
  }
11330
11334
  get videoCodec() {
11331
- return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : mt.UNKNOWN;
11335
+ return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : xt.UNKNOWN;
11332
11336
  }
11333
11337
  get audioTrackInfo() {
11334
11338
  return this.hasAudio ? qt.AliRtcAudioTrackMic : qt.AliRtcAudioTrackNo;
@@ -11341,7 +11345,7 @@ class bi extends we {
11341
11345
  let t = "", i = "", s = "", a = "", c = "";
11342
11346
  return e ? (e.forEach((o) => {
11343
11347
  var p;
11344
- let u = mt.UNKNOWN;
11348
+ let u = xt.UNKNOWN;
11345
11349
  const h = ((p = o == null ? void 0 : o.attr) == null ? void 0 : p.reason) === "reconnect";
11346
11350
  if (o.userdata) {
11347
11351
  const { codec: d } = JSON.parse(o.userdata);
@@ -11464,8 +11468,8 @@ class Ut extends we {
11464
11468
  }
11465
11469
  }
11466
11470
  const sc = 30;
11467
- var ut;
11468
- const _e = (ut = class extends pn {
11471
+ var ht;
11472
+ const _e = (ht = class extends pn {
11469
11473
  constructor(e) {
11470
11474
  var f;
11471
11475
  const {
@@ -11549,7 +11553,7 @@ const _e = (ut = class extends pn {
11549
11553
  } else
11550
11554
  i = Wt.parse(t.body);
11551
11555
  i || H.event(
11552
- `[${ut.logName}]`,
11556
+ `[${ht.logName}]`,
11553
11557
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11554
11558
  );
11555
11559
  } else {
@@ -11557,7 +11561,7 @@ const _e = (ut = class extends pn {
11557
11561
  return;
11558
11562
  }
11559
11563
  i && (H.event(
11560
- `[${ut.logName}]`,
11564
+ `[${ht.logName}]`,
11561
11565
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11562
11566
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11563
11567
  });
@@ -11704,7 +11708,7 @@ const _e = (ut = class extends pn {
11704
11708
  clear(e = !0) {
11705
11709
  return w(this, null, function* () {
11706
11710
  var t;
11707
- this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(ut.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11711
+ this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(ht.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11708
11712
  });
11709
11713
  }
11710
11714
  updateRemoteUserDeviceStatus(e) {
@@ -12005,7 +12009,7 @@ const _e = (ut = class extends pn {
12005
12009
  var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
12006
12010
  const t = Date.now(), i = {}, s = {};
12007
12011
  if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || k.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || k.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || k.VideoLarge), this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : (!this.wantSubVideo || !((g = this.streamInfo) != null && g.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || k.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((E = this.streamInfo) != null && E.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === le.Reconnect) {
12008
- if (H.event(`[${ut.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12012
+ if (H.event(`[${ht.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12009
12013
  const A = this.rtsManager.getStreamByMsid({
12010
12014
  url: this.streamUrl,
12011
12015
  aMsid: this.streamInfo.getAudioInfo().msid || k.Audio
@@ -12239,7 +12243,7 @@ const _e = (ut = class extends pn {
12239
12243
  }, /**
12240
12244
  * @ignore
12241
12245
  */
12242
- m(ut, "logName", "RemoteUser"), ut);
12246
+ m(ht, "logName", "RemoteUser"), ht);
12243
12247
  De([
12244
12248
  D()
12245
12249
  ], _e.prototype, "clear", 1);
@@ -12296,7 +12300,7 @@ De([
12296
12300
  D()
12297
12301
  ], _e.prototype, "stopPlayAll", 1);
12298
12302
  let ac = _e;
12299
- var vt = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(vt || {});
12303
+ var bt = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(bt || {});
12300
12304
  class nc extends we {
12301
12305
  constructor() {
12302
12306
  super(...arguments);
@@ -12304,13 +12308,13 @@ class nc extends we {
12304
12308
  }
12305
12309
  add(e, t) {
12306
12310
  if (this.plugins.has(e.name))
12307
- throw new V(vt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12311
+ throw new V(bt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12308
12312
  this.plugins.set(e.name, e), t && e.setOptions(t), this.emit("added", e), e.on("enabled", () => this.emit("added", e)), e.on("disabled", () => this.emit("removed", e)), e.on("updated", () => this.emit("updated", e));
12309
12313
  }
12310
12314
  remove(e) {
12311
12315
  const t = this.plugins.get(e);
12312
12316
  if (!t)
12313
- throw new V(vt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12317
+ throw new V(bt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12314
12318
  this.plugins.delete(e), t.removeAllListeners(), this.emit("removed", t);
12315
12319
  }
12316
12320
  removeAll() {
@@ -12328,7 +12332,7 @@ class nc extends we {
12328
12332
  return Array.from(this.plugins.values());
12329
12333
  }
12330
12334
  }
12331
- var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, ye = (r, n, e, t) => {
12335
+ var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, be = (r, n, e, t) => {
12332
12336
  for (var i = t > 1 ? void 0 : t ? cc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
12333
12337
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
12334
12338
  return t && i && oc(n, e, i), i;
@@ -12338,7 +12342,7 @@ const wi = ([r]) => {
12338
12342
  return [`user(${n.userId})`, e];
12339
12343
  }, za = 5;
12340
12344
  var Me;
12341
- const ve = (Me = class extends we {
12345
+ const xe = (Me = class extends we {
12342
12346
  constructor(e, t, i, s, a) {
12343
12347
  super();
12344
12348
  m(this, "rts");
@@ -12568,7 +12572,7 @@ const ve = (Me = class extends we {
12568
12572
  const u = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((p) => !(p.bytesSent > 0) && o < a ? (o++, new Promise((f) => setTimeout(() => f(u()), c))) : Promise.resolve());
12569
12573
  return u();
12570
12574
  };
12571
- return Promise.race([St(1e3), s(5, 100)]).catch(() => {
12575
+ return Promise.race([vt(1e3), s(5, 100)]).catch(() => {
12572
12576
  });
12573
12577
  });
12574
12578
  }
@@ -12788,7 +12792,7 @@ const ve = (Me = class extends we {
12788
12792
  subscribeAdd(e) {
12789
12793
  return w(this, null, function* () {
12790
12794
  var a, c, o, u;
12791
- const { remoteUser: t, options: i } = e, s = pt(Y({
12795
+ const { remoteUser: t, options: i } = e, s = gt(Y({
12792
12796
  url: t.streamUrl,
12793
12797
  subAudio: !!i.audio,
12794
12798
  subVideo: !!(i.screen || i.video)
@@ -12816,7 +12820,7 @@ const ve = (Me = class extends we {
12816
12820
  return w(this, null, function* () {
12817
12821
  var a, c, o, u;
12818
12822
  yield this.dcConnectingPromise;
12819
- const { remoteUser: t, options: i } = e, s = pt(Y({
12823
+ const { remoteUser: t, options: i } = e, s = gt(Y({
12820
12824
  url: t.streamUrl,
12821
12825
  subAudio: !!i.audio,
12822
12826
  subVideo: !!(i.screen || i.video)
@@ -12892,7 +12896,7 @@ const ve = (Me = class extends we {
12892
12896
  aMsid: k.Audio
12893
12897
  },
12894
12898
  i
12895
- ), h = !0, p = k.Audio, yield St(100)), f && (o = yield this.publishAdd(
12899
+ ), h = !0, p = k.Audio, yield vt(100)), f && (o = yield this.publishAdd(
12896
12900
  e,
12897
12901
  f,
12898
12902
  t,
@@ -12900,7 +12904,7 @@ const ve = (Me = class extends we {
12900
12904
  vMsid: k.VideoLarge
12901
12905
  },
12902
12906
  i
12903
- ), h = !1, p = k.VideoLarge, yield St(100)), g && (o = yield this.publishAdd(
12907
+ ), h = !1, p = k.VideoLarge, yield vt(100)), g && (o = yield this.publishAdd(
12904
12908
  e,
12905
12909
  g,
12906
12910
  t,
@@ -12908,7 +12912,7 @@ const ve = (Me = class extends we {
12908
12912
  vMsid: k.VideoSmall
12909
12913
  },
12910
12914
  i
12911
- ), h = !1, p = k.VideoSmall, yield St(100)), l && (o = yield this.publishAdd(
12915
+ ), h = !1, p = k.VideoSmall, yield vt(100)), l && (o = yield this.publishAdd(
12912
12916
  e,
12913
12917
  l,
12914
12918
  t,
@@ -13006,7 +13010,7 @@ const ve = (Me = class extends we {
13006
13010
  sstc: d - p
13007
13011
  }
13008
13012
  );
13009
- }), c && (yield Promise.race([y, St(1500)])), h;
13013
+ }), c && (yield Promise.race([y, vt(1500)])), h;
13010
13014
  });
13011
13015
  }
13012
13016
  getSubscribeVideoStats(e, t) {
@@ -13043,64 +13047,67 @@ const ve = (Me = class extends we {
13043
13047
  * @ignore
13044
13048
  */
13045
13049
  m(Me, "logName", "RtsManager"), Me);
13046
- ye([
13050
+ be([
13051
+ D(U)
13052
+ ], xe.prototype, "startConnect", 1);
13053
+ be([
13047
13054
  D()
13048
- ], ve.prototype, "updatePublishingTracks", 1);
13049
- ye([
13055
+ ], xe.prototype, "updatePublishingTracks", 1);
13056
+ be([
13050
13057
  D(U, U)
13051
- ], ve.prototype, "httpPublish", 1);
13052
- ye([
13058
+ ], xe.prototype, "httpPublish", 1);
13059
+ be([
13053
13060
  D(U, U)
13054
- ], ve.prototype, "waitPublishSender", 1);
13055
- ye([
13061
+ ], xe.prototype, "waitPublishSender", 1);
13062
+ be([
13056
13063
  D(([r, n, e]) => [r, JSON.stringify(e)], U)
13057
- ], ve.prototype, "publishAdd", 1);
13058
- ye([
13064
+ ], xe.prototype, "publishAdd", 1);
13065
+ be([
13059
13066
  D(U, U)
13060
- ], ve.prototype, "publishDelete", 1);
13061
- ye([
13067
+ ], xe.prototype, "publishDelete", 1);
13068
+ be([
13062
13069
  D(([r, n, e]) => [r, JSON.stringify(e)])
13063
- ], ve.prototype, "publishReplace", 1);
13064
- ye([
13070
+ ], xe.prototype, "publishReplace", 1);
13071
+ be([
13065
13072
  D(U)
13066
- ], ve.prototype, "publishStop", 1);
13067
- ye([
13073
+ ], xe.prototype, "publishStop", 1);
13074
+ be([
13068
13075
  D(U)
13069
- ], ve.prototype, "publishAddDataChannel", 1);
13070
- ye([
13076
+ ], xe.prototype, "publishAddDataChannel", 1);
13077
+ be([
13071
13078
  D(U)
13072
- ], ve.prototype, "publishStopDataChannel", 1);
13073
- ye([
13079
+ ], xe.prototype, "publishStopDataChannel", 1);
13080
+ be([
13074
13081
  D()
13075
- ], ve.prototype, "unpublish", 1);
13076
- ye([
13082
+ ], xe.prototype, "unpublish", 1);
13083
+ be([
13077
13084
  D(wi, ({ traceId: r }) => r)
13078
- ], ve.prototype, "httpSubscribe", 1);
13079
- ye([
13085
+ ], xe.prototype, "httpSubscribe", 1);
13086
+ be([
13080
13087
  D(wi, ({ traceId: r }) => r)
13081
- ], ve.prototype, "subscribeAdd", 1);
13082
- ye([
13088
+ ], xe.prototype, "subscribeAdd", 1);
13089
+ be([
13083
13090
  D(wi)
13084
- ], ve.prototype, "subscibeDelete", 1);
13085
- ye([
13091
+ ], xe.prototype, "subscibeDelete", 1);
13092
+ be([
13086
13093
  D(U)
13087
- ], ve.prototype, "subscibeStop", 1);
13088
- ye([
13094
+ ], xe.prototype, "subscibeStop", 1);
13095
+ be([
13089
13096
  D(U)
13090
- ], ve.prototype, "subscribeAddDataChannel", 1);
13091
- ye([
13097
+ ], xe.prototype, "subscribeAddDataChannel", 1);
13098
+ be([
13092
13099
  D(U)
13093
- ], ve.prototype, "subscribeStopDatachannel", 1);
13094
- ye([
13100
+ ], xe.prototype, "subscribeStopDatachannel", 1);
13101
+ be([
13095
13102
  D(U)
13096
- ], ve.prototype, "publish", 1);
13097
- ye([
13103
+ ], xe.prototype, "publish", 1);
13104
+ be([
13098
13105
  D(wi)
13099
- ], ve.prototype, "subscribe", 1);
13100
- ye([
13106
+ ], xe.prototype, "subscribe", 1);
13107
+ be([
13101
13108
  D()
13102
- ], ve.prototype, "sendSEI", 1);
13103
- let uc = ve;
13109
+ ], xe.prototype, "sendSEI", 1);
13110
+ let uc = xe;
13104
13111
  class Tr {
13105
13112
  constructor() {
13106
13113
  m(this, "profile");
@@ -13382,14 +13389,14 @@ const Ge = (Bt = class extends we {
13382
13389
  m(this, "_publishLocalScreenStreamEnabled", !0);
13383
13390
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13384
13391
  const i = (s) => w(this, null, function* () {
13385
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.4-beta.0")) {
13392
+ if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.4-beta.1")) {
13386
13393
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13387
13394
  return;
13388
13395
  }
13389
13396
  try {
13390
13397
  yield s.init();
13391
13398
  } catch (a) {
13392
- s.emit("error", V.fromError(a, vt.AliRtcPluginErrorInitError));
13399
+ s.emit("error", V.fromError(a, bt.AliRtcPluginErrorInitError));
13393
13400
  }
13394
13401
  s.streamType === Ee.AliRtcSdkStreamTypeCapture && (this.cameraStreamInfo.addPlugin(s), yield this.cameraStreamInfo.process(this.streamInfos)), s.streamType === Ee.AliRtcSdkStreamTypeScreen && (this.screenStreamInfo.addPlugin(s), yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
13395
13402
  });
@@ -13518,7 +13525,7 @@ const Ge = (Bt = class extends we {
13518
13525
  f && (yield h.setAudioProfile(f));
13519
13526
  }
13520
13527
  }
13521
- return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield St(1e3)), yield this.updateStreams(), h;
13528
+ return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13522
13529
  });
13523
13530
  }
13524
13531
  stopLocalStream(e) {
@@ -15139,7 +15146,7 @@ class Ga {
15139
15146
  const i = qr(t);
15140
15147
  e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, a) => {
15141
15148
  var c, o;
15142
- (o = this.tracker) == null || o.send(Y(pt(Y({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${a}` }), s));
15149
+ (o = this.tracker) == null || o.send(Y(gt(Y({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${a}` }), s));
15143
15150
  }), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
15144
15151
  }
15145
15152
  }
@@ -15165,7 +15172,7 @@ class Ga {
15165
15172
  let e;
15166
15173
  try {
15167
15174
  e = JSON.parse(
15168
- JSON.stringify(Y(pt(Y({
15175
+ JSON.stringify(Y(gt(Y({
15169
15176
  bt: kr.browserName || "unknown"
15170
15177
  }, this.param), {
15171
15178
  stat_log_id: `${((t = this.param) == null ? void 0 : t.sesid) || "nosession"}-${this.index}`
@@ -15338,32 +15345,32 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15338
15345
  u.push(Xe);
15339
15346
  const Ye = qe(fe(Fe, 8, 2e7), ue);
15340
15347
  h.push(Ye);
15341
- const xe = pe(j, "packetsReceived"), Pe = qe(xe, ue);
15348
+ const Se = pe(j, "packetsReceived"), Pe = qe(Se, ue);
15342
15349
  p.push(Pe);
15343
15350
  const at = pe(j, "packetsLost"), Et = qe(at, ue);
15344
15351
  d.push(Et);
15345
- const Nt = Rt(at, xe);
15352
+ const Nt = Rt(at, Se);
15346
15353
  f.push(Nt);
15347
15354
  const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
15348
15355
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
15349
- const dt = fe(At, 1e3 / Jt, 1e4);
15350
- g.push(dt);
15356
+ const lt = fe(At, 1e3 / Jt, 1e4);
15357
+ g.push(lt);
15351
15358
  } else
15352
15359
  g.push(0);
15353
15360
  const _t = pe(j, "fecPacketsReceived");
15354
- b.push(Rt(_t, xe));
15355
- const ke = pe(j, "retransmittedPacketsReceived"), Ce = xe + at - ke;
15356
- if (S.push(Rt(xe - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15361
+ b.push(Rt(_t, Se));
15362
+ const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + at - ke;
15363
+ if (S.push(Rt(Se - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15357
15364
  E.push(Xa(j.audioLevel));
15358
- const dt = Lc(j, "synthesizedSamplesEvents");
15359
- I.push(dt);
15365
+ const lt = Lc(j, "synthesizedSamplesEvents");
15366
+ I.push(lt);
15360
15367
  const Qe = Ya(j, "synthesizedSamplesDuration");
15361
15368
  A.push(Qe);
15362
15369
  const nt = Rt(Qe, ue);
15363
15370
  y.push(nt), C.push(0);
15364
15371
  } else {
15365
- const dt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15366
- L.push(fe(dt, 1e3 / (j.framesDecoded || 30), 500)), _.push(fe(j.framesPerSecond, 1, 100)), R.push(pe(j, "framesReceived")), F.push(pe(j, "framesRendered")), T.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15372
+ const lt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15373
+ L.push(fe(lt, 1e3 / (j.framesDecoded || 30), 500)), _.push(fe(j.framesPerSecond, 1, 100)), R.push(pe(j, "framesReceived")), F.push(pe(j, "framesRendered")), T.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15367
15374
  const Qe = pe(j, "totalProcessingDelay");
15368
15375
  $.push(fe(Qe, 1e3 / (j.framesDecoded || 30), 12e4));
15369
15376
  const nt = pe(j, "nackCount");
@@ -15374,8 +15381,8 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15374
15381
  ae.push(fe(oi, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15375
15382
  const ci = pe(j, "totalFreezesDuration");
15376
15383
  te.push(fe(ci, 1e3, 3e4));
15377
- const ze = pe(j, "jitterBufferEmittedCount"), lt = pe(j, "jitterBufferDelay");
15378
- lt && ze ? ee.push(fe(lt, 1e3 / ze, 3e4)) : ee.push(0);
15384
+ const ze = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15385
+ ft && ze ? ee.push(fe(ft, 1e3 / ze, 3e4)) : ee.push(0);
15379
15386
  const ui = pe(j, "jitterBufferTargetDelay");
15380
15387
  ui && ze ? P.push(fe(ui, 1e3 / ze, 3e4)) : P.push(0);
15381
15388
  const Gt = pe(j, "jitterBufferMinimumDelay");
@@ -15986,11 +15993,11 @@ const z = (K = class extends we {
15986
15993
  m(this, "_serverCheckAuthInfoTimestamp", null);
15987
15994
  m(this, "_localCheckAuthInfoTimestamp", null);
15988
15995
  const t = Date.now();
15989
- H.init(), this.slsReporter = new Or(this), this.channelProfile = xt.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
15996
+ H.init(), this.slsReporter = new Or(this), this.channelProfile = St.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
15990
15997
  this.channelProfile,
15991
15998
  this.clientRole,
15992
15999
  this.slsReporter,
15993
- (e == null ? void 0 : e.env) === ht.pre ? ht.pre : ht.prod
16000
+ (e == null ? void 0 : e.env) === dt.pre ? dt.pre : dt.prod
15994
16001
  ), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new Te({
15995
16002
  slsReporter: this.slsReporter,
15996
16003
  signalingManager: this.signalingManager
@@ -16042,7 +16049,7 @@ const z = (K = class extends we {
16042
16049
  return e ? e.isPublishing : !1;
16043
16050
  }
16044
16051
  get currentRoleCanPublish() {
16045
- return this.channelProfile === xt.AliRtcSdkCommunication || this.clientRole === Dt.AliRtcSdkInteractive;
16052
+ return this.channelProfile === St.AliRtcSdkCommunication || this.clientRole === Dt.AliRtcSdkInteractive;
16046
16053
  }
16047
16054
  /**
16048
16055
  * 监听 Publisher 事件
@@ -16055,21 +16062,21 @@ const z = (K = class extends we {
16055
16062
  H.event("[Publisher] VideoTrack Ended"), this.emit(
16056
16063
  "localDeviceException",
16057
16064
  ct.AliEngineLocalDeviceTypeCamera,
16058
- be.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16065
+ ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16059
16066
  ""
16060
16067
  );
16061
16068
  }), (i = this.publisher) == null || i.on(kt.ScreenTrackEnded, () => {
16062
16069
  H.event("[Publisher] ScreenTrack Ended"), this.emit(
16063
16070
  "localDeviceException",
16064
16071
  ct.AliEngineLocalDeviceTypeDisplay,
16065
- be.AliEngineLocalDeviceExceptionTypeDisplayException,
16072
+ ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16066
16073
  ""
16067
16074
  );
16068
16075
  }), (s = this.publisher) == null || s.on(kt.AudioTrackEnded, () => {
16069
16076
  H.event("[Publisher] AudioTrack Ended"), this.emit(
16070
16077
  "localDeviceException",
16071
16078
  ct.AliEngineLocalDeviceTypeMic,
16072
- be.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16079
+ ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16073
16080
  ""
16074
16081
  );
16075
16082
  }), (a = this.publisher) == null || a.on(
@@ -16273,7 +16280,7 @@ const z = (K = class extends we {
16273
16280
  "onNetworkRecovery",
16274
16281
  `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`,
16275
16282
  { users: e }
16276
- ), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting && (yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = he.AliRtcConnectionStatusConnected, this.emit(
16283
+ ), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting ? (yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList()) : e && (yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = he.AliRtcConnectionStatusConnected, this.emit(
16277
16284
  "connectionStatusChange",
16278
16285
  he.AliRtcConnectionStatusConnected,
16279
16286
  Ht.AliRtcConnectionSignalingHeartbeatAlive
@@ -16359,7 +16366,7 @@ const z = (K = class extends we {
16359
16366
  he.AliRtcConnectionStatusFailed
16360
16367
  ].includes(this.connectState))
16361
16368
  throw new V(O.ERR_INNER, "cannot set channel profile in call");
16362
- this.channelProfile = e, this.channelProfile === xt.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16369
+ this.channelProfile = e, this.channelProfile === St.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16363
16370
  }
16364
16371
  startAndPublishDefaultDevices(e) {
16365
16372
  return w(this, null, function* () {
@@ -16406,7 +16413,7 @@ const z = (K = class extends we {
16406
16413
  return w(this, null, function* () {
16407
16414
  var t, i;
16408
16415
  try {
16409
- if (this.channelProfile === xt.AliRtcSdkCommunication)
16416
+ if (this.channelProfile === St.AliRtcSdkCommunication)
16410
16417
  return;
16411
16418
  if (!Object.values(Dt).includes(e))
16412
16419
  throw new V(
@@ -17088,7 +17095,7 @@ const z = (K = class extends we {
17088
17095
  const e = this.bizControl.pluginManager.get("AliRtcBeauty");
17089
17096
  if (!e)
17090
17097
  throw new V(
17091
- vt.AliRtcPluginErrorNoFindPlugin,
17098
+ bt.AliRtcPluginErrorNoFindPlugin,
17092
17099
  "you should enable beautyPlugin first"
17093
17100
  );
17094
17101
  return !!(e != null && e.isEnable);
@@ -17097,7 +17104,7 @@ const z = (K = class extends we {
17097
17104
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17098
17105
  if (!i)
17099
17106
  throw new V(
17100
- vt.AliRtcPluginErrorNoFindPlugin,
17107
+ bt.AliRtcPluginErrorNoFindPlugin,
17101
17108
  "you should enable beautyPlugin first"
17102
17109
  );
17103
17110
  e ? i.enable() : i.disable(), i.setOptions({
@@ -17111,7 +17118,7 @@ const z = (K = class extends we {
17111
17118
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17112
17119
  if (!i || !i.isEnable)
17113
17120
  throw new V(
17114
- vt.AliRtcPluginErrorNoFindPlugin,
17121
+ bt.AliRtcPluginErrorNoFindPlugin,
17115
17122
  "you should enable beautyPlugin first"
17116
17123
  );
17117
17124
  const s = {
@@ -17127,7 +17134,7 @@ const z = (K = class extends we {
17127
17134
  const t = this.bizControl.pluginManager.get("AliRtcBeauty");
17128
17135
  if (!t || !t.isEnable)
17129
17136
  throw new V(
17130
- vt.AliRtcPluginErrorNoFindPlugin,
17137
+ bt.AliRtcPluginErrorNoFindPlugin,
17131
17138
  "you should enable beautyPlugin first"
17132
17139
  );
17133
17140
  const i = {
@@ -17175,7 +17182,7 @@ m(K, "getCameraList", () => w(K, null, function* () {
17175
17182
  return (yield ce.getMicList()).filter((t) => t.deviceId);
17176
17183
  })), m(K, "getSpeakerList", () => w(K, null, function* () {
17177
17184
  return (yield ce.getSpeakerList()).filter((t) => t.deviceId);
17178
- })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", xt), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ct), m(K, "AliRtcEngineLocalDeviceExceptionType", be), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ot), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17185
+ })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ct), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ot), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17179
17186
  W([
17180
17187
  D()
17181
17188
  ], z.prototype, "destroy", 1);
@@ -17416,7 +17423,7 @@ export {
17416
17423
  Ht as AliRtcConnectionStatusChangeReason,
17417
17424
  Wt as AliRtcDataChannelMsg,
17418
17425
  vn as AliRtcDataMsgType,
17419
- be as AliRtcEngineLocalDeviceExceptionType,
17426
+ ye as AliRtcEngineLocalDeviceExceptionType,
17420
17427
  ct as AliRtcEngineLocalDeviceType,
17421
17428
  O as AliRtcErrorCode,
17422
17429
  Xr as AliRtcLiveTranscodingAudioSampleRate,
@@ -17442,7 +17449,7 @@ export {
17442
17449
  Z as AliRtcPublishState,
17443
17450
  Ee as AliRtcRawDataStreamType,
17444
17451
  tc as AliRtcRemoteUserInfo,
17445
- xt as AliRtcSdkChannelProfile,
17452
+ St as AliRtcSdkChannelProfile,
17446
17453
  Dt as AliRtcSdkClientRole,
17447
17454
  de as AliRtcSubscribeState,
17448
17455
  kc as AliRtcTranscodingClockWidget,