aliyun-rtc-sdk 6.13.2-beta.0 → 6.13.2-beta.2

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.
@@ -49,7 +49,7 @@ var O = (s, c, e) => new Promise((t, i) => {
49
49
  return e = e.apply(s, c), r[Symbol.asyncIterator] = () => r, i("next"), i("throw"), i("return"), r;
50
50
  };
51
51
  import { AliRTS as Re, EConnectStatus as Ts, EDatachannelStatus as Bs } from "aliyun-rts-sdk";
52
- import Ge from "eventemitter3";
52
+ import Je from "eventemitter3";
53
53
  var ho = Object.defineProperty, lo = (s, c, e) => c in s ? ho(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e, Jt = (s, c, e) => (lo(s, typeof c != "symbol" ? c + "" : c, e), e), $i = { exports: {} }, qi = { exports: {} }, Gi, Ps;
54
54
  function tt() {
55
55
  if (Ps)
@@ -2238,11 +2238,11 @@ class us {
2238
2238
  this.isDestroyed = !0;
2239
2239
  }
2240
2240
  }
2241
- var Ie = /* @__PURE__ */ ((s) => (s.PullStreamStats = "remoteStat", s.RtsSubscribeExceeds = "rtsSubscribeExceeds", s.UserJoined = "userJoined", s.UserLeft = "userLeft", s.Bye = "bye", s.MuteAudio = "muteAudio", s.UnmuteAudio = "unmuteAudio", s.MuteVideo = "muteVideo", s.UnmuteVideo = "unmuteVideo", s.MuteScreen = "muteScreen", s.UnmuteScreen = "unmuteScreen", s.Error = "error", s))(Ie || {}), et = /* @__PURE__ */ ((s) => (s.Local = "local-device-status-change", s.Remote = "remote-device-status-change", s))(et || {}), G = /* @__PURE__ */ ((s) => (s.Audio = "sophon_audio", s.VideoLarge = "sophon_video_camera_large", s.VideoSmall = "sophon_video_camera_small", s.Screen = "sophon_video_screen_share", s.Data = "sophon_data", s))(G || {}), hs = /* @__PURE__ */ ((s) => (s.Audio = "rts audio", s.VideoLarge = "rts video", s))(hs || {}), Nt = /* @__PURE__ */ ((s) => (s.Add = "add", s.Delete = "delete", s.Replace = "replace", s.Stop = "stop", s.UnPublish = "unpublish", s))(Nt || {}), ii = /* @__PURE__ */ ((s) => (s[s.Camera = 0] = "Camera", s[s.Screen = 1] = "Screen", s[s.Image = 2] = "Image", s))(ii || {}), Ii = /* @__PURE__ */ ((s) => (s[s.Microphone = 0] = "Microphone", s[s.Screen = 1] = "Screen", s[s.Mixed = 2] = "Mixed", s))(Ii || {}), Te = /* @__PURE__ */ ((s) => (s.InRoom = "inRoom", s.Join = "join", s.Publish = "publish", s.User = "user", s.Resume = "resume", s.Retry = "retry", s.Reconnect = "reconnect", s))(Te || {}), kt = /* @__PURE__ */ ((s) => (s[s.MANUAL = 0] = "MANUAL", s[s.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", s[s.ROLE_CHANGE = 2] = "ROLE_CHANGE", s))(kt || {}), $e = [];
2241
+ var Ie = /* @__PURE__ */ ((s) => (s.PullStreamStats = "remoteStat", s.RtsSubscribeExceeds = "rtsSubscribeExceeds", s.UserJoined = "userJoined", s.UserLeft = "userLeft", s.Bye = "bye", s.MuteAudio = "muteAudio", s.UnmuteAudio = "unmuteAudio", s.MuteVideo = "muteVideo", s.UnmuteVideo = "unmuteVideo", s.MuteScreen = "muteScreen", s.UnmuteScreen = "unmuteScreen", s.Error = "error", s))(Ie || {}), et = /* @__PURE__ */ ((s) => (s.Local = "local-device-status-change", s.Remote = "remote-device-status-change", s))(et || {}), G = /* @__PURE__ */ ((s) => (s.Audio = "sophon_audio", s.VideoLarge = "sophon_video_camera_large", s.VideoSmall = "sophon_video_camera_small", s.Screen = "sophon_video_screen_share", s.Data = "sophon_data", s))(G || {}), hs = /* @__PURE__ */ ((s) => (s.Audio = "rts audio", s.VideoLarge = "rts video", s))(hs || {}), Nt = /* @__PURE__ */ ((s) => (s.Add = "add", s.Delete = "delete", s.Replace = "replace", s.Stop = "stop", s.UnPublish = "unpublish", s))(Nt || {}), ii = /* @__PURE__ */ ((s) => (s[s.Camera = 0] = "Camera", s[s.Screen = 1] = "Screen", s[s.Image = 2] = "Image", s))(ii || {}), Ii = /* @__PURE__ */ ((s) => (s[s.Microphone = 0] = "Microphone", s[s.Screen = 1] = "Screen", s[s.Mixed = 2] = "Mixed", s))(Ii || {}), Te = /* @__PURE__ */ ((s) => (s.InRoom = "inRoom", s.Join = "join", s.Publish = "publish", s.User = "user", s.Resume = "resume", s.Retry = "retry", s.Reconnect = "reconnect", s))(Te || {}), kt = /* @__PURE__ */ ((s) => (s[s.MANUAL = 0] = "MANUAL", s[s.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", s[s.ROLE_CHANGE = 2] = "ROLE_CHANGE", s))(kt || {}), qe = [];
2242
2242
  for (var ar = 0; ar < 256; ++ar)
2243
- $e.push((ar + 256).toString(16).slice(1));
2243
+ qe.push((ar + 256).toString(16).slice(1));
2244
2244
  function No(s, c = 0) {
2245
- return ($e[s[c + 0]] + $e[s[c + 1]] + $e[s[c + 2]] + $e[s[c + 3]] + "-" + $e[s[c + 4]] + $e[s[c + 5]] + "-" + $e[s[c + 6]] + $e[s[c + 7]] + "-" + $e[s[c + 8]] + $e[s[c + 9]] + "-" + $e[s[c + 10]] + $e[s[c + 11]] + $e[s[c + 12]] + $e[s[c + 13]] + $e[s[c + 14]] + $e[s[c + 15]]).toLowerCase();
2245
+ return (qe[s[c + 0]] + qe[s[c + 1]] + qe[s[c + 2]] + qe[s[c + 3]] + "-" + qe[s[c + 4]] + qe[s[c + 5]] + "-" + qe[s[c + 6]] + qe[s[c + 7]] + "-" + qe[s[c + 8]] + qe[s[c + 9]] + "-" + qe[s[c + 10]] + qe[s[c + 11]] + qe[s[c + 12]] + qe[s[c + 13]] + qe[s[c + 14]] + qe[s[c + 15]]).toLowerCase();
2246
2246
  }
2247
2247
  var Ai, Fo = new Uint8Array(16);
2248
2248
  function Oo() {
@@ -2268,7 +2268,7 @@ function jt(s, c, e) {
2268
2268
  return No(t);
2269
2269
  }
2270
2270
  var Ri = /* @__PURE__ */ ((s) => (s.prod = "rs.rtn.aliyuncs.com", s.pre = "prs.rtn.aliyuncs.com", s))(Ri || {});
2271
- const ds = "6.13.2-beta.0", hn = "web";
2271
+ const ds = "6.13.2-beta.2", hn = "web";
2272
2272
  class ft {
2273
2273
  /**
2274
2274
  * 将版本号转换为number
@@ -4824,8 +4824,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
4824
4824
  Ae(k, ee, Z);
4825
4825
  for (H = fe; Z = k.heap[1], k.heap[1] = k.heap[k.heap_len--], Ae(k, ee, 1), X = k.heap[1], k.heap[--k.heap_max] = Z, k.heap[--k.heap_max] = X, ee[2 * H] = ee[2 * Z] + ee[2 * X], k.depth[H] = (k.depth[Z] >= k.depth[X] ? k.depth[Z] : k.depth[X]) + 1, ee[2 * Z + 1] = ee[2 * X + 1] = H, k.heap[1] = H++, Ae(k, ee, 1), 2 <= k.heap_len; )
4826
4826
  ;
4827
- k.heap[--k.heap_max] = k.heap[1], function(xe, Ke) {
4828
- var mt, Me, it, Pe, gt, $t, lt = Ke.dyn_tree, vi = Ke.max_code, xi = Ke.stat_desc.static_tree, ji = Ke.stat_desc.has_stree, Si = Ke.stat_desc.extra_bits, _i = Ke.stat_desc.extra_base, Et = Ke.stat_desc.max_length, qt = 0;
4827
+ k.heap[--k.heap_max] = k.heap[1], function(xe, $e) {
4828
+ var mt, Me, it, Pe, gt, $t, lt = $e.dyn_tree, vi = $e.max_code, xi = $e.stat_desc.static_tree, ji = $e.stat_desc.has_stree, Si = $e.stat_desc.extra_bits, _i = $e.stat_desc.extra_base, Et = $e.stat_desc.max_length, qt = 0;
4829
4829
  for (Pe = 0; Pe <= g; Pe++)
4830
4830
  xe.bl_count[Pe] = 0;
4831
4831
  for (lt[2 * xe.heap[xe.heap_max] + 1] = 0, mt = xe.heap_max + 1; mt < d; mt++)
@@ -4911,9 +4911,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
4911
4911
  ;
4912
4912
  return re.opt_len += 3 * (fe + 1) + 5 + 5 + 4, fe;
4913
4913
  }(k), H = k.opt_len + 3 + 7 >>> 3, (ee = k.static_len + 3 + 7 >>> 3) <= H && (H = ee)) : H = ee = Z + 5, Z + 4 <= H && V !== -1 ? P(k, V, Z, X) : k.strategy === 4 || ee === H ? (F(k, 2 + (X ? 1 : 0), 3), Fe(k, N, C)) : (F(k, 4 + (X ? 1 : 0), 3), function(re, fe, _e, xe) {
4914
- var Ke;
4915
- for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4), Ke = 0; Ke < xe; Ke++)
4916
- F(re, re.bl_tree[2 * D[Ke] + 1], 3);
4914
+ var $e;
4915
+ for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4), $e = 0; $e < xe; $e++)
4916
+ F(re, re.bl_tree[2 * D[$e] + 1], 3);
4917
4917
  J(re, re.dyn_ltree, fe - 1), J(re, re.dyn_dtree, _e - 1);
4918
4918
  }(k, k.l_desc.max_code + 1, k.d_desc.max_code + 1, he + 1), Fe(k, k.dyn_ltree, k.dyn_dtree)), ce(k), X && be(k);
4919
4919
  }, i._tr_tally = function(k, V, Z) {
@@ -6518,8 +6518,8 @@ function Da() {
6518
6518
  if (X < 16)
6519
6519
  ee = he.high = p[d + X * 2] | 0, H = he.low = p[d + X * 2 + 1] | 0;
6520
6520
  else {
6521
- var re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7, Ke = (_e >>> 1 | fe << 31) ^ (_e >>> 8 | fe << 24) ^ (_e >>> 7 | fe << 25), mt = f[X - 2], Me = mt.high, it = mt.low, Pe = (Me >>> 19 | it << 13) ^ (Me << 3 | it >>> 29) ^ Me >>> 6, gt = (it >>> 19 | Me << 13) ^ (it << 3 | Me >>> 29) ^ (it >>> 6 | Me << 26), $t = f[X - 7], lt = $t.high, vi = $t.low, xi = f[X - 16], ji = xi.high, Si = xi.low;
6522
- H = Ke + vi, ee = xe + lt + (H >>> 0 < Ke >>> 0 ? 1 : 0), H = H + gt, ee = ee + Pe + (H >>> 0 < gt >>> 0 ? 1 : 0), H = H + Si, ee = ee + ji + (H >>> 0 < Si >>> 0 ? 1 : 0), he.high = ee, he.low = H;
6521
+ var re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7, $e = (_e >>> 1 | fe << 31) ^ (_e >>> 8 | fe << 24) ^ (_e >>> 7 | fe << 25), mt = f[X - 2], Me = mt.high, it = mt.low, Pe = (Me >>> 19 | it << 13) ^ (Me << 3 | it >>> 29) ^ Me >>> 6, gt = (it >>> 19 | Me << 13) ^ (it << 3 | Me >>> 29) ^ (it >>> 6 | Me << 26), $t = f[X - 7], lt = $t.high, vi = $t.low, xi = f[X - 16], ji = xi.high, Si = xi.low;
6522
+ H = $e + vi, ee = xe + lt + (H >>> 0 < $e >>> 0 ? 1 : 0), H = H + gt, ee = ee + Pe + (H >>> 0 < gt >>> 0 ? 1 : 0), H = H + Si, ee = ee + ji + (H >>> 0 < Si >>> 0 ? 1 : 0), he.high = ee, he.low = H;
6523
6523
  }
6524
6524
  var _i = Ce & J ^ ~Ce & P, Et = S & W ^ ~S & k, qt = K & pe ^ K & be ^ pe & be, Qa = Q & ce ^ Q & we ^ ce & we, eo = (K >>> 28 | Q << 4) ^ (K << 30 | Q >>> 2) ^ (K << 25 | Q >>> 7), As = (Q >>> 28 | K << 4) ^ (Q << 30 | K >>> 2) ^ (Q << 25 | K >>> 7), to = (Ce >>> 14 | S << 18) ^ (Ce >>> 18 | S << 14) ^ (Ce << 23 | S >>> 9), io = (S >>> 14 | Ce << 18) ^ (S >>> 18 | Ce << 14) ^ (S << 23 | Ce >>> 9), ws = m[X], ro = ws.high, Cs = ws.low, at = Z + io, At = V + to + (at >>> 0 < Z >>> 0 ? 1 : 0), at = at + Et, At = At + _i + (at >>> 0 < Et >>> 0 ? 1 : 0), at = at + Cs, At = At + ro + (at >>> 0 < Cs >>> 0 ? 1 : 0), at = at + H, At = At + ee + (at >>> 0 < H >>> 0 ? 1 : 0), Is = As + Qa, so = eo + qt + (Is >>> 0 < As >>> 0 ? 1 : 0);
6525
6525
  V = P, Z = k, P = J, k = W, J = Ce, W = S, S = Fe + at | 0, Ce = Ae + At + (S >>> 0 < Fe >>> 0 ? 1 : 0) | 0, Ae = be, Fe = we, be = pe, we = ce, pe = K, ce = Q, Q = at + Is | 0, K = At + so + (Q >>> 0 < at >>> 0 ? 1 : 0) | 0;
@@ -11085,8 +11085,8 @@ const Be = (s, c = 1, e = 6e4, t = 0) => {
11085
11085
  ie.push(_e);
11086
11086
  const xe = Le(Q, "pliCount");
11087
11087
  U.push(xe);
11088
- const Ke = Le(Q, "qpSum");
11089
- q.push(Be(Ke, 1 / (Q.framesPerSecond || 1), 51)), oe.push(Be(Q.framesDropped));
11088
+ const $e = Le(Q, "qpSum");
11089
+ q.push(Be($e, 1 / (Q.framesPerSecond || 1), 51)), oe.push(Be(Q.framesDropped));
11090
11090
  const mt = Le(Q, "totalFreezesDuration");
11091
11091
  $.push(Be(mt, 1e3, 3e4));
11092
11092
  const Me = Le(Q, "jitterBufferEmittedCount"), it = Le(Q, "jitterBufferDelay");
@@ -11944,7 +11944,7 @@ const h0 = (s) => O(void 0, null, function* () {
11944
11944
  return e.detail.isScreenShareSupported = c.checkWebRtcSupport() && c.checkScreenCapture() && !Re.SystenUtil.isAndroid && !Re.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = c.checkWebRtcSupport() && c.checkEncodedTransformSupport(), e;
11945
11945
  }), d0 = () => new Re.SupportUtil().checkScreenCapture();
11946
11946
  var je = /* @__PURE__ */ ((s) => (s[s.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", s[s.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", s))(je || {}), l0 = /* @__PURE__ */ ((s) => (s[s.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", s[s.POST_PROCESSOR = 1] = "POST_PROCESSOR", s))(l0 || {}), Fi = /* @__PURE__ */ ((s) => (s[s.AUDIO = 0] = "AUDIO", s[s.VIDEO = 1] = "VIDEO", s[s.BOTH = 2] = "BOTH", s))(Fi || {});
11947
- class ri extends Ge {
11947
+ class ri extends Je {
11948
11948
  constructor(e, t = je.AliRtcSdkStreamTypeCapture, i = 1) {
11949
11949
  super();
11950
11950
  // 扩展名
@@ -12121,8 +12121,8 @@ class ts {
12121
12121
  return n;
12122
12122
  }
12123
12123
  }
12124
- var yt = /* @__PURE__ */ ((s) => (s.pre = "pre", s.prod = "prod", s))(yt || {}), It = /* @__PURE__ */ ((s) => (s.AliRtcSdkCommunication = "communication", s.AliRtcSdkInteractiveLive = "interactive_live", s.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", s))(It || {}), Ft = /* @__PURE__ */ ((s) => (s.AliRtcSdkInteractive = "interactive", s.AliRtcSdkLive = "live", s))(Ft || {}), St = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", s[s.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", s[s.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", s[s.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", s[s.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", s[s.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", s[s.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", s))(St || {}), He = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", s[s.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", s[s.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", s[s.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", s[s.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", s[s.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", s[s.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", s[s.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", s[s.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", s[s.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", s[s.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", s[s.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", s))(He || {}), De = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", s[s.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", s[s.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", s[s.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", s[s.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", s[s.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", s))(De || {}), Yt = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", s[s.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", s[s.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", s[s.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", s[s.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", s[s.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", s[s.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", s[s.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", s[s.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", s[s.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", s[s.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", s[s.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", s[s.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", s))(Yt || {}), xs = /* @__PURE__ */ ((s) => (s[s.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", s[s.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", s[s.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", s))(xs || {}), si = /* @__PURE__ */ ((s) => (s[s.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", s[s.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", s[s.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", s))(si || {}), ye = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", s[s.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", s[s.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", s[s.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", s))(ye || {}), ge = /* @__PURE__ */ ((s) => (s[s.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", s[s.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", s[s.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", s[s.AliRtcStatePublished = 3] = "AliRtcStatePublished", s))(ge || {}), ke = /* @__PURE__ */ ((s) => (s[s.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", s[s.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", s[s.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", s[s.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", s))(ke || {}), qe = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", s[s.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", s[s.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", s))(qe || {}), gi = /* @__PURE__ */ ((s) => (s[s.CAMERA_INVALID = -1] = "CAMERA_INVALID", s[s.CAMERA_REAR = 0] = "CAMERA_REAR", s[s.CAMERA_FRONT = 1] = "CAMERA_FRONT", s))(gi || {});
12125
- const oa = 10, ca = 5e3, Qt = class Qt extends Ge {
12124
+ var yt = /* @__PURE__ */ ((s) => (s.pre = "pre", s.prod = "prod", s))(yt || {}), It = /* @__PURE__ */ ((s) => (s.AliRtcSdkCommunication = "communication", s.AliRtcSdkInteractiveLive = "interactive_live", s.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", s))(It || {}), Ft = /* @__PURE__ */ ((s) => (s.AliRtcSdkInteractive = "interactive", s.AliRtcSdkLive = "live", s))(Ft || {}), St = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", s[s.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", s[s.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", s[s.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", s[s.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", s[s.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", s[s.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", s))(St || {}), He = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", s[s.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", s[s.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", s[s.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", s[s.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", s[s.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", s[s.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", s[s.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", s[s.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", s[s.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", s[s.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", s[s.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", s))(He || {}), De = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", s[s.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", s[s.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", s[s.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", s[s.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", s[s.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", s))(De || {}), Yt = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", s[s.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", s[s.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", s[s.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", s[s.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", s[s.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", s[s.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", s[s.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", s[s.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", s[s.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", s[s.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", s[s.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", s[s.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", s))(Yt || {}), xs = /* @__PURE__ */ ((s) => (s[s.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", s[s.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", s[s.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", s))(xs || {}), si = /* @__PURE__ */ ((s) => (s[s.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", s[s.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", s[s.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", s))(si || {}), ye = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", s[s.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", s[s.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", s[s.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", s))(ye || {}), ge = /* @__PURE__ */ ((s) => (s[s.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", s[s.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", s[s.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", s[s.AliRtcStatePublished = 3] = "AliRtcStatePublished", s))(ge || {}), ke = /* @__PURE__ */ ((s) => (s[s.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", s[s.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", s[s.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", s[s.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", s))(ke || {}), Ge = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", s[s.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", s[s.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", s))(Ge || {}), gi = /* @__PURE__ */ ((s) => (s[s.CAMERA_INVALID = -1] = "CAMERA_INVALID", s[s.CAMERA_REAR = 0] = "CAMERA_REAR", s[s.CAMERA_FRONT = 1] = "CAMERA_FRONT", s))(gi || {});
12125
+ const oa = 10, ca = 5e3, Qt = class Qt extends Je {
12126
12126
  constructor(e) {
12127
12127
  super();
12128
12128
  _(this, "ws");
@@ -12394,7 +12394,7 @@ class Y extends Error {
12394
12394
  return this._extra;
12395
12395
  }
12396
12396
  }
12397
- const g0 = 3e4, ct = class ct extends Ge {
12397
+ const g0 = 3e4, ct = class ct extends Je {
12398
12398
  // 发送重连信令时,房间信令凭这些信息找回 session
12399
12399
  constructor(e, t, i, r, n, a) {
12400
12400
  super();
@@ -12801,7 +12801,7 @@ var b0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, Ss = (s, c
12801
12801
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
12802
12802
  return t && i && b0(c, e, i), i;
12803
12803
  }, Ye;
12804
- const Vi = (Ye = class extends Ge {
12804
+ const Vi = (Ye = class extends Je {
12805
12805
  constructor(e, t, i, r = yt.prod) {
12806
12806
  super();
12807
12807
  _(this, "messageCenter");
@@ -12998,7 +12998,7 @@ Ss([
12998
12998
  j()
12999
12999
  ], Vi.prototype, "roleUpdate", 1);
13000
13000
  let x0 = Vi;
13001
- const S0 = "https://pgw.rtn.aliyuncs.com", _0 = "https://gw.rtn.aliyuncs.com", ua = 10 * 60 * 1e3, y0 = 12, li = class li extends Ge {
13001
+ const S0 = "https://pgw.rtn.aliyuncs.com", _0 = "https://gw.rtn.aliyuncs.com", ua = 10 * 60 * 1e3, y0 = 12, li = class li extends Je {
13002
13002
  constructor(e, t) {
13003
13003
  super();
13004
13004
  _(this, "env");
@@ -13051,7 +13051,7 @@ var E0 = Object.defineProperty, A0 = Object.getOwnPropertyDescriptor, w0 = (s, c
13051
13051
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
13052
13052
  return t && i && E0(c, e, i), i;
13053
13053
  };
13054
- class _s extends Ge {
13054
+ class _s extends Je {
13055
13055
  constructor(e, t, i, r = yt.prod) {
13056
13056
  super();
13057
13057
  _(this, "signaling");
@@ -13303,7 +13303,7 @@ function C0(s, c, e, t, i) {
13303
13303
  }
13304
13304
  };
13305
13305
  }
13306
- class I0 extends Ge {
13306
+ class I0 extends Je {
13307
13307
  constructor() {
13308
13308
  super();
13309
13309
  _(this, "audioContext");
@@ -13337,7 +13337,7 @@ class I0 extends Ge {
13337
13337
  this.stop();
13338
13338
  }
13339
13339
  }
13340
- class Ha extends Ge {
13340
+ class Ha extends Je {
13341
13341
  constructor(e, t, i, r) {
13342
13342
  super();
13343
13343
  _(this, "uid");
@@ -13725,7 +13725,7 @@ var T0 = Object.defineProperty, B0 = Object.getOwnPropertyDescriptor, Oe = (s, c
13725
13725
  return t && i && T0(c, e, i), i;
13726
13726
  };
13727
13727
  const fa = 30;
13728
- class ni extends Ge {
13728
+ class ni extends Je {
13729
13729
  constructor() {
13730
13730
  super();
13731
13731
  _(this, "state");
@@ -14623,7 +14623,7 @@ const Ne = (Tt = class extends Ha {
14623
14623
  const n = yield this.rtsManager.getPublishVideoStats(this.url, G.VideoLarge);
14624
14624
  n && t.push({
14625
14625
  track: ye.AliRtcVideoTrackCamera,
14626
- streamType: qe.AliRtcVideoStreamTypeHigh,
14626
+ streamType: Ge.AliRtcVideoStreamTypeHigh,
14627
14627
  stats: n
14628
14628
  });
14629
14629
  }
@@ -14631,7 +14631,7 @@ const Ne = (Tt = class extends Ha {
14631
14631
  const n = yield this.rtsManager.getPublishVideoStats(this.url, G.VideoSmall);
14632
14632
  n && t.push({
14633
14633
  track: ye.AliRtcVideoTrackCamera,
14634
- streamType: qe.AliRtcVideoStreamTypeLow,
14634
+ streamType: Ge.AliRtcVideoStreamTypeLow,
14635
14635
  stats: n
14636
14636
  });
14637
14637
  }
@@ -14743,7 +14743,7 @@ var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c
14743
14743
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
14744
14744
  return t && i && U0(c, e, i), i;
14745
14745
  };
14746
- class Bi extends Ge {
14746
+ class Bi extends Je {
14747
14747
  constructor() {
14748
14748
  super();
14749
14749
  _(this, "audioInfo", {
@@ -15038,7 +15038,7 @@ var W0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, Xe = (s, c
15038
15038
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
15039
15039
  return t && i && W0(c, e, i), i;
15040
15040
  };
15041
- class Zt extends Ge {
15041
+ class Zt extends Je {
15042
15042
  constructor() {
15043
15043
  super();
15044
15044
  _(this, "state");
@@ -15064,7 +15064,7 @@ class Zt extends Ge {
15064
15064
  }
15065
15065
  const $0 = 30;
15066
15066
  var _t;
15067
- const Je = (_t = class extends Ha {
15067
+ const Ke = (_t = class extends Ha {
15068
15068
  constructor(e) {
15069
15069
  var l;
15070
15070
  const {
@@ -15100,7 +15100,7 @@ const Je = (_t = class extends Ha {
15100
15100
  _(this, "wantSubAudio", !1);
15101
15101
  _(this, "wantSubVideo", !1);
15102
15102
  _(this, "wantSubScreen", !1);
15103
- _(this, "defaultVideoStreamType", qe.AliRtcVideoStreamTypeHigh);
15103
+ _(this, "defaultVideoStreamType", Ge.AliRtcVideoStreamTypeHigh);
15104
15104
  _(this, "audioMuted", !1);
15105
15105
  _(this, "playoutVolume", 1);
15106
15106
  _(this, "playoutGainNode");
@@ -15577,7 +15577,7 @@ const Je = (_t = class extends Ha {
15577
15577
  getRetryOptions() {
15578
15578
  var i, r, n, a, o, u, h;
15579
15579
  const e = {};
15580
- this.wantSubAudio && ((i = this.streamInfo) != null && i.hasAudio) && (e.audio = !0, e.aMsid = ((r = this.streamInfo.getAudioInfo()) == null ? void 0 : r.msid) || G.Audio), this.wantSubVideo && ((n = this.streamInfo) != null && n.hasVideo) && (this.defaultVideoStreamType === qe.AliRtcVideoStreamTypeLow && ((a = this.streamInfo) != null && a.hasVideoSmall) ? (e.video = !0, e.vMsid = G.VideoSmall) : (o = this.streamInfo) != null && o.hasVideoLarge && (e.video = !0, e.vMsid = ((u = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : u.msid) || G.VideoLarge)), this.wantSubScreen && ((h = this.streamInfo) != null && h.hasScreen) && (e.screen = !0);
15580
+ this.wantSubAudio && ((i = this.streamInfo) != null && i.hasAudio) && (e.audio = !0, e.aMsid = ((r = this.streamInfo.getAudioInfo()) == null ? void 0 : r.msid) || G.Audio), this.wantSubVideo && ((n = this.streamInfo) != null && n.hasVideo) && (this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && ((a = this.streamInfo) != null && a.hasVideoSmall) ? (e.video = !0, e.vMsid = G.VideoSmall) : (o = this.streamInfo) != null && o.hasVideoLarge && (e.video = !0, e.vMsid = ((u = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : u.msid) || G.VideoLarge)), this.wantSubScreen && ((h = this.streamInfo) != null && h.hasScreen) && (e.screen = !0);
15581
15581
  let t = {};
15582
15582
  if (e.audio || e.video)
15583
15583
  t = {
@@ -15603,7 +15603,7 @@ const Je = (_t = class extends Ha {
15603
15603
  updateSubscribe(e) {
15604
15604
  var n, a, o, u, h, m, f, l, p, d, g, v, b, x, y, A, I;
15605
15605
  const t = Date.now(), i = {}, r = {};
15606
- if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((a = this.streamInfo.getAudioInfo()) == null ? void 0 : a.msid) || G.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (r.audio = !0, r.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || G.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === qe.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((m = this.streamInfo) != null && m.hasVideoSmall) ? (i.video = !0, i.vMsid = G.VideoSmall) : !this.isVideoLargeSubscribing && ((f = this.streamInfo) != null && f.hasVideoLarge) && !(this.defaultVideoStreamType === qe.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || G.VideoLarge), this.defaultVideoStreamType === qe.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (r.video = !0, r.vMsid = G.VideoLarge) : this.defaultVideoStreamType === qe.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (r.video = !0, r.vMsid = G.VideoSmall)) : (!this.wantSubVideo || !((p = this.streamInfo) != null && p.hasVideo)) && this.isVideoSubscribing && (r.video = !0, r.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? G.VideoSmall : ((d = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : d.msid) || G.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((g = this.streamInfo) != null && g.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (r.screen = !0), (b = this.parameter.data) != null && b.enableSubDataChannel && !this.isDataSubscribing && ((x = this.streamInfo) != null && x.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((A = this.streamInfo) != null && A.hasData)) && this.isDataSubscribing && (r.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (r.audio || r.video || r.screen) && this.subscribeDeleteTracks(r), e === Te.Reconnect) {
15606
+ if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((a = this.streamInfo.getAudioInfo()) == null ? void 0 : a.msid) || G.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (r.audio = !0, r.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || G.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((m = this.streamInfo) != null && m.hasVideoSmall) ? (i.video = !0, i.vMsid = G.VideoSmall) : !this.isVideoLargeSubscribing && ((f = this.streamInfo) != null && f.hasVideoLarge) && !(this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || G.VideoLarge), this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (r.video = !0, r.vMsid = G.VideoLarge) : this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (r.video = !0, r.vMsid = G.VideoSmall)) : (!this.wantSubVideo || !((p = this.streamInfo) != null && p.hasVideo)) && this.isVideoSubscribing && (r.video = !0, r.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? G.VideoSmall : ((d = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : d.msid) || G.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((g = this.streamInfo) != null && g.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (r.screen = !0), (b = this.parameter.data) != null && b.enableSubDataChannel && !this.isDataSubscribing && ((x = this.streamInfo) != null && x.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((A = this.streamInfo) != null && A.hasData)) && this.isDataSubscribing && (r.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (r.audio || r.video || r.screen) && this.subscribeDeleteTracks(r), e === Te.Reconnect) {
15607
15607
  if (ae.event(`[${_t.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
15608
15608
  const w = this.rtsManager.getStreamByMsid({
15609
15609
  url: this.streamUrl,
@@ -15651,22 +15651,28 @@ const Je = (_t = class extends Ha {
15651
15651
  }
15652
15652
  playAudio() {
15653
15653
  return O(this, null, function* () {
15654
- var t, i;
15655
- if (!this.audioTrack)
15656
- return;
15657
- if (this.toggleAudio(!this.audioMuted), this.audioElement || (this.audioElement = document.createElement("audio"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((i = (t = this.audioElement.srcObject) == null ? void 0 : t.getAudioTracks()) == null ? void 0 : i[0]) !== this.audioTrack) {
15658
- let r = this.audioElement.srcObject;
15659
- r ? r.getAudioTracks().forEach((n) => {
15660
- r.removeTrack(n);
15661
- }) : (r = new MediaStream(), this.audioElement.srcObject = r), r.addTrack(this.audioTrack);
15654
+ var e, t;
15655
+ if (this.audioTrack) {
15656
+ if (this.toggleAudio(!this.audioMuted), this.audioElement || (this.audioElement = document.createElement("audio"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
15657
+ let i = this.audioElement.srcObject;
15658
+ i ? i.getAudioTracks().forEach((r) => {
15659
+ i.removeTrack(r);
15660
+ }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
15661
+ }
15662
+ if (Re.SystenUtil.isIos && parseInt(Re.SystenUtil.systemVersion) <= 14) {
15663
+ const i = this.audioElement;
15664
+ i.setAttribute("autoplay", "");
15665
+ const r = () => {
15666
+ i.removeEventListener("playing", r), i.pause(), i.play().catch(() => {
15667
+ this.handleAutoPlayFailed();
15668
+ });
15669
+ };
15670
+ this.audioElement.addEventListener("playing", r);
15671
+ } else
15672
+ this.audioElement.play().catch(() => {
15673
+ this.handleAutoPlayFailed();
15674
+ });
15662
15675
  }
15663
- this.audioElement.play().catch(() => {
15664
- this.handleAutoPlayFailed();
15665
- });
15666
- const e = this.audioElement;
15667
- this.audioElement.addEventListener("playing", function r() {
15668
- e.removeEventListener("playing", r), Re.SystenUtil.isIos && parseInt(Re.SystenUtil.systemVersion) <= 14 && (e.muted || (e.pause(), e.play()));
15669
- });
15670
15676
  });
15671
15677
  }
15672
15678
  stopPlayAudio() {
@@ -15736,7 +15742,7 @@ const Je = (_t = class extends Ha {
15736
15742
  u && t.push({
15737
15743
  uid: this.uid,
15738
15744
  track: ye.AliRtcVideoTrackCamera,
15739
- streamType: qe.AliRtcVideoStreamTypeHigh,
15745
+ streamType: Ge.AliRtcVideoStreamTypeHigh,
15740
15746
  stats: u
15741
15747
  });
15742
15748
  }
@@ -15748,7 +15754,7 @@ const Je = (_t = class extends Ha {
15748
15754
  u && t.push({
15749
15755
  uid: this.uid,
15750
15756
  track: ye.AliRtcVideoTrackCamera,
15751
- streamType: qe.AliRtcVideoStreamTypeLow,
15757
+ streamType: Ge.AliRtcVideoStreamTypeLow,
15752
15758
  stats: u
15753
15759
  });
15754
15760
  }
@@ -15835,59 +15841,62 @@ const Je = (_t = class extends Ha {
15835
15841
  _(_t, "logName", "RemoteUser"), _t);
15836
15842
  Xe([
15837
15843
  j()
15838
- ], Je.prototype, "clear", 1);
15844
+ ], Ke.prototype, "clear", 1);
15839
15845
  Xe([
15840
15846
  j()
15841
- ], Je.prototype, "updateRemoteUserDeviceStatus", 1);
15847
+ ], Ke.prototype, "updateRemoteUserDeviceStatus", 1);
15842
15848
  Xe([
15843
15849
  j()
15844
- ], Je.prototype, "updateRemoteTracks", 1);
15850
+ ], Ke.prototype, "updateRemoteTracks", 1);
15845
15851
  Xe([
15846
15852
  j(ne)
15847
- ], Je.prototype, "subscribe", 1);
15853
+ ], Ke.prototype, "subscribe", 1);
15848
15854
  Xe([
15849
15855
  j()
15850
- ], Je.prototype, "subscribeProxy", 1);
15856
+ ], Ke.prototype, "subscribeProxy", 1);
15851
15857
  Xe([
15852
15858
  j(ne)
15853
- ], Je.prototype, "subscribeDeleteProxy", 1);
15859
+ ], Ke.prototype, "subscribeDeleteProxy", 1);
15854
15860
  Xe([
15855
15861
  j()
15856
- ], Je.prototype, "restore", 1);
15862
+ ], Ke.prototype, "restore", 1);
15863
+ Xe([
15864
+ j(ne)
15865
+ ], Ke.prototype, "resumeAudio", 1);
15857
15866
  Xe([
15858
15867
  j(ne)
15859
- ], Je.prototype, "stopSubscribe", 1);
15868
+ ], Ke.prototype, "stopSubscribe", 1);
15860
15869
  Xe([
15861
15870
  j(ne)
15862
- ], Je.prototype, "doStopSubscribe", 1);
15871
+ ], Ke.prototype, "doStopSubscribe", 1);
15863
15872
  Xe([
15864
15873
  j()
15865
- ], Je.prototype, "clearStream", 1);
15874
+ ], Ke.prototype, "clearStream", 1);
15866
15875
  Xe([
15867
15876
  j()
15868
- ], Je.prototype, "clearScreenStream", 1);
15877
+ ], Ke.prototype, "clearScreenStream", 1);
15869
15878
  Xe([
15870
15879
  j()
15871
- ], Je.prototype, "updateSubscribe", 1);
15880
+ ], Ke.prototype, "updateSubscribe", 1);
15872
15881
  Xe([
15873
15882
  j()
15874
- ], Je.prototype, "playAudio", 1);
15883
+ ], Ke.prototype, "playAudio", 1);
15875
15884
  Xe([
15876
15885
  j()
15877
- ], Je.prototype, "stopPlayAudio", 1);
15886
+ ], Ke.prototype, "stopPlayAudio", 1);
15878
15887
  Xe([
15879
15888
  j((s, c, e) => [
15880
15889
  typeof s == "string" ? s : s == null ? void 0 : s.nodeType,
15881
15890
  c,
15882
15891
  e
15883
15892
  ])
15884
- ], Je.prototype, "play", 1);
15893
+ ], Ke.prototype, "play", 1);
15885
15894
  Xe([
15886
15895
  j()
15887
- ], Je.prototype, "stopPlayAll", 1);
15888
- let q0 = Je;
15896
+ ], Ke.prototype, "stopPlayAll", 1);
15897
+ let q0 = Ke;
15889
15898
  var Dt = /* @__PURE__ */ ((s) => (s[s.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", s[s.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", s[s.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", s[s.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", s[s.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", s[s.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", s[s.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", s[s.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", s))(Dt || {});
15890
- class G0 extends Ge {
15899
+ class G0 extends Je {
15891
15900
  constructor() {
15892
15901
  super(...arguments);
15893
15902
  _(this, "plugins", /* @__PURE__ */ new Map());
@@ -15928,7 +15937,7 @@ const zi = ([s]) => {
15928
15937
  return [`user(${c.userId})`, e];
15929
15938
  }, ma = 5;
15930
15939
  var Qe;
15931
- const Ue = (Qe = class extends Ge {
15940
+ const Ue = (Qe = class extends Je {
15932
15941
  constructor(e, t, i, r, n) {
15933
15942
  super();
15934
15943
  _(this, "rts");
@@ -16732,7 +16741,7 @@ class Gr {
16732
16741
  });
16733
16742
  }
16734
16743
  }
16735
- class ga extends Ge {
16744
+ class ga extends Je {
16736
16745
  constructor(e) {
16737
16746
  super();
16738
16747
  _(this, "type");
@@ -16949,7 +16958,7 @@ var Y0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, pt = (s, c
16949
16958
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
16950
16959
  return t && i && Y0(c, e, i), i;
16951
16960
  }, zt;
16952
- const dt = (zt = class extends Ge {
16961
+ const dt = (zt = class extends Je {
16953
16962
  // 设置是否发布屏幕流
16954
16963
  constructor(e, t) {
16955
16964
  super();
@@ -16972,7 +16981,7 @@ const dt = (zt = class extends Ge {
16972
16981
  _(this, "_publishLocalScreenStreamEnabled", !0);
16973
16982
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
16974
16983
  const i = (r) => O(this, null, function* () {
16975
- if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.0")) {
16984
+ if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.2")) {
16976
16985
  console.warn(`${r.name} is not supported!!!`), r.emit("unsupported");
16977
16986
  return;
16978
16987
  }
@@ -17898,7 +17907,7 @@ var mu = Object.defineProperty, gu = Object.getOwnPropertyDescriptor, nt = (s, c
17898
17907
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
17899
17908
  return t && i && mu(c, e, i), i;
17900
17909
  };
17901
- class Ze extends Ge {
17910
+ class Ze extends Je {
17902
17911
  constructor(e) {
17903
17912
  super();
17904
17913
  _(this, "self");
@@ -17920,7 +17929,7 @@ class Ze extends Ge {
17920
17929
  _(this, "wantSubAudio", !0);
17921
17930
  _(this, "wantSubVideo", !0);
17922
17931
  _(this, "wantSubScreen", !0);
17923
- _(this, "defaultStreamType", qe.AliRtcVideoStreamTypeHigh);
17932
+ _(this, "defaultStreamType", Ge.AliRtcVideoStreamTypeHigh);
17924
17933
  _(this, "audioMuted", !1);
17925
17934
  _(this, "playoutVolume", 1);
17926
17935
  // 音量检测时间间隔
@@ -18702,7 +18711,7 @@ var Eu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, de = (s, c
18702
18711
  (n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
18703
18712
  return t && i && Eu(c, e, i), i;
18704
18713
  }, le;
18705
- const ue = (le = class extends Ge {
18714
+ const ue = (le = class extends Je {
18706
18715
  constructor(e) {
18707
18716
  super();
18708
18717
  _(this, "channelProfile");
@@ -19367,10 +19376,10 @@ const ue = (le = class extends Ge {
19367
19376
  return (t = (e = this.publisher) == null ? void 0 : e.publishLocalVideoStreamEnabled) != null ? t : !0;
19368
19377
  }
19369
19378
  setRemoteDefaultVideoStreamType(e) {
19370
- [qe.AliRtcVideoStreamTypeHigh, qe.AliRtcVideoStreamTypeLow].includes(e) && this.bizControl.setRemoteDefaultVideoStreamType(e);
19379
+ [Ge.AliRtcVideoStreamTypeHigh, Ge.AliRtcVideoStreamTypeLow].includes(e) && this.bizControl.setRemoteDefaultVideoStreamType(e);
19371
19380
  }
19372
19381
  setRemoteUserVideoStreamType(e, t) {
19373
- [qe.AliRtcVideoStreamTypeHigh, qe.AliRtcVideoStreamTypeLow].includes(t) && this.bizControl.setRemoteUserVideoStreamType(e, t);
19382
+ [Ge.AliRtcVideoStreamTypeHigh, Ge.AliRtcVideoStreamTypeLow].includes(t) && this.bizControl.setRemoteUserVideoStreamType(e, t);
19374
19383
  }
19375
19384
  setDefaultSubscribeAllRemoteVideoStreams(e) {
19376
19385
  this.bizControl.setAutoSubVideo(e), this.bizControl.setAutoSubScreen(e);
@@ -19910,7 +19919,7 @@ _(le, "getCameraList", () => O(le, null, function* () {
19910
19919
  return (yield Re.getMicList()).filter((t) => t.deviceId);
19911
19920
  })), _(le, "getSpeakerList", () => O(le, null, function* () {
19912
19921
  return (yield Re.getSpeakerList()).filter((t) => t.deviceId);
19913
- })), _(le, "_instance"), _(le, "AliRtcSdkChannelProfile", It), _(le, "AliRtcSdkClientRole", Ft), _(le, "AliRtcVideoStreamType", qe), _(le, "AliRtcVideoTrack", ye), _(le, "AliRtcAudioTrack", si), _(le, "AliRtcPublishState", ge), _(le, "AliRtcSubscribeState", ke), _(le, "AliRtcRawDataStreamType", je), _(le, "AliRtcLogLevel", La), _(le, "AliRtcEngineLocalDeviceType", St), _(le, "AliRtcEngineLocalDeviceExceptionType", He), _(le, "AliRtcConnectionStatus", De), _(le, "AliRtcConnectionStatusChangeReason", Yt), _(le, "AliRtcPlugin", ri), _(le, "AliRtcPluginTrackType", Fi), _(le, "AliRtcLiveTranscodingParam", ts), _(le, "AliRtcLiveTranscodingEncodeParam", Ua), _(le, "AliRtcLiveTranscodingMixParam", vu), _(le, "AliRtcLiveTranscodingSingleParam", xu), _(le, "AliRtcTranscodingClockWidget", Su), _(le, "AliRtcTranscodingImage", Xa), _(le, "AliRtcTranscodingText", _u), _(le, "AliRtcTranscodingUser", yu), _(le, "AliRtcLiveTranscodingMixMode", ki), _(le, "AliRtcLiveTranscodingStreamType", Ma), _(le, "AliRtcLiveTranscodingSourceType", mi), _(le, "AliRtcLiveTranscodingTaskProfile", Na), _(le, "AliRtcLiveTranscodingAudioSampleRate", gs), _(le, "AliRtcLiveTranscodingSegmentType", Ti), _(le, "AliRtcLiveTranscodingFontType", Oi), _(le, "AliRtcLiveTranscodingCropMode", Fa), _(le, "AliRtcLiveTranscodingMediaProcessMode", bs), _(le, "AliRtcLiveTranscodingState", Oa), _(le, "AliRtcLiveTranscodingErrorCode", xt), _(le, "AliRtcTrascodingPublishTaskStatus", Va), _(le, "AliRtcDataChannelMsg", ti), _(le, "AliRtcDataMsgType", $a), _(le, "Plugin", ri), le);
19922
+ })), _(le, "_instance"), _(le, "AliRtcSdkChannelProfile", It), _(le, "AliRtcSdkClientRole", Ft), _(le, "AliRtcVideoStreamType", Ge), _(le, "AliRtcVideoTrack", ye), _(le, "AliRtcAudioTrack", si), _(le, "AliRtcPublishState", ge), _(le, "AliRtcSubscribeState", ke), _(le, "AliRtcRawDataStreamType", je), _(le, "AliRtcLogLevel", La), _(le, "AliRtcEngineLocalDeviceType", St), _(le, "AliRtcEngineLocalDeviceExceptionType", He), _(le, "AliRtcConnectionStatus", De), _(le, "AliRtcConnectionStatusChangeReason", Yt), _(le, "AliRtcPlugin", ri), _(le, "AliRtcPluginTrackType", Fi), _(le, "AliRtcLiveTranscodingParam", ts), _(le, "AliRtcLiveTranscodingEncodeParam", Ua), _(le, "AliRtcLiveTranscodingMixParam", vu), _(le, "AliRtcLiveTranscodingSingleParam", xu), _(le, "AliRtcTranscodingClockWidget", Su), _(le, "AliRtcTranscodingImage", Xa), _(le, "AliRtcTranscodingText", _u), _(le, "AliRtcTranscodingUser", yu), _(le, "AliRtcLiveTranscodingMixMode", ki), _(le, "AliRtcLiveTranscodingStreamType", Ma), _(le, "AliRtcLiveTranscodingSourceType", mi), _(le, "AliRtcLiveTranscodingTaskProfile", Na), _(le, "AliRtcLiveTranscodingAudioSampleRate", gs), _(le, "AliRtcLiveTranscodingSegmentType", Ti), _(le, "AliRtcLiveTranscodingFontType", Oi), _(le, "AliRtcLiveTranscodingCropMode", Fa), _(le, "AliRtcLiveTranscodingMediaProcessMode", bs), _(le, "AliRtcLiveTranscodingState", Oa), _(le, "AliRtcLiveTranscodingErrorCode", xt), _(le, "AliRtcTrascodingPublishTaskStatus", Va), _(le, "AliRtcDataChannelMsg", ti), _(le, "AliRtcDataMsgType", $a), _(le, "Plugin", ri), le);
19914
19923
  de([
19915
19924
  j()
19916
19925
  ], ue.prototype, "destroy", 1);
@@ -20185,7 +20194,7 @@ export {
20185
20194
  _u as AliRtcTranscodingText,
20186
20195
  yu as AliRtcTranscodingUser,
20187
20196
  Va as AliRtcTrascodingPublishTaskStatus,
20188
- qe as AliRtcVideoStreamType,
20197
+ Ge as AliRtcVideoStreamType,
20189
20198
  ye as AliRtcVideoTrack,
20190
20199
  Ru as default
20191
20200
  };