@xmaxai/web-sdk 1.0.1 → 1.0.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.
@@ -9,10 +9,7 @@ var XmaxEnvironment = /* @__PURE__ */ ((XmaxEnvironment2) => {
9
9
  return XmaxEnvironment2;
10
10
  })(XmaxEnvironment || {});
11
11
  var API_BASE_URLS = {
12
- /**
13
- * 临时联调环境。
14
- */
15
- ["china" /* china */]: "https://dev.xmaxai.com/open/api/v1",
12
+ ["china" /* china */]: "https://cloud.xmax.22duck.cn/open/api/v1",
16
13
  ["global" /* global */]: "https://api.xmax.cloud/open/api/v1"
17
14
  };
18
15
  function apiBaseURL(environment) {
@@ -201,7 +198,7 @@ var XmaxError = class _XmaxError extends Error {
201
198
  };
202
199
 
203
200
  // src/Foundation/Runtime/RuntimeInfo.ts
204
- var XMAX_SDK_VERSION = "1.0.1";
201
+ var XMAX_SDK_VERSION = "1.0.2";
205
202
  var _RuntimeInfo = class _RuntimeInfo {
206
203
  /**
207
204
  * 序列化为接口传输使用的 snake_case 字段。
@@ -565,7 +562,7 @@ var RealtimeVideoFormat = class _RealtimeVideoFormat {
565
562
  var RealtimeModel = /* @__PURE__ */ ((RealtimeModel2) => {
566
563
  RealtimeModel2["x2_0"] = "x2.0";
567
564
  RealtimeModel2["x2_0_pro"] = "x2.0-pro";
568
- RealtimeModel2["x2_fast_1080p"] = "x2-fast-1080p";
565
+ RealtimeModel2["x2_0_trtc"] = "x2.0-trtc";
569
566
  return RealtimeModel2;
570
567
  })(RealtimeModel || {});
571
568
  var RESOLUTION_BUCKETS = {
@@ -574,7 +571,7 @@ var RESOLUTION_BUCKETS = {
574
571
  { width: 1024, height: 1920 },
575
572
  { width: 1920, height: 1024 }
576
573
  ],
577
- ["x2-fast-1080p" /* x2_fast_1080p */]: [
574
+ ["x2.0-trtc" /* x2_0_trtc */]: [
578
575
  { width: 1024, height: 1920 },
579
576
  { width: 1920, height: 1024 }
580
577
  ]
@@ -582,7 +579,7 @@ var RESOLUTION_BUCKETS = {
582
579
  var MAXIMUM_INPUT_PIXELS = {
583
580
  ["x2.0" /* x2_0 */]: 128e4,
584
581
  ["x2.0-pro" /* x2_0_pro */]: 21e5,
585
- ["x2-fast-1080p" /* x2_fast_1080p */]: 21e5
582
+ ["x2.0-trtc" /* x2_0_trtc */]: 21e5
586
583
  };
587
584
  function resolutionBuckets(model) {
588
585
  return RESOLUTION_BUCKETS[model];
@@ -625,9 +622,9 @@ var MediaService = class {
625
622
  /**
626
623
  * 创建媒体服务。
627
624
  *
628
- * @param model 媒体输入规则使用的模型,默认为 `x2-fast-1080p`。
625
+ * @param model 媒体输入规则使用的模型,默认为 `x2.0-trtc`。
629
626
  */
630
- constructor(model = "x2-fast-1080p" /* x2_fast_1080p */) {
627
+ constructor(model = "x2.0-trtc" /* x2_0_trtc */) {
631
628
  /**
632
629
  * 模型约束
633
630
  */
@@ -5815,9 +5812,9 @@ var XmaxClient = class {
5815
5812
  /**
5816
5813
  * 创建媒体处理与能力查询 Service。
5817
5814
  *
5818
- * @param model 媒体输入规则使用的模型,默认为 `x2-fast-1080p`。
5815
+ * @param model 媒体输入规则使用的模型,默认为 `x2.0-trtc`。
5819
5816
  */
5820
- createMediaService(model = "x2-fast-1080p" /* x2_fast_1080p */) {
5817
+ createMediaService(model = "x2.0-trtc" /* x2_0_trtc */) {
5821
5818
  return new MediaService(model);
5822
5819
  }
5823
5820
  /**
@@ -8718,4 +8715,4 @@ var XmaxRealtimeVideoView = class {
8718
8715
 
8719
8716
 
8720
8717
  exports.XmaxEnvironment = XmaxEnvironment; exports.apiBaseURL = apiBaseURL; exports.XmaxLoggerOption = XmaxLoggerOption; exports.XmaxLogger = XmaxLogger; exports.XmaxErrorCode = XmaxErrorCode; exports.XmaxError = XmaxError; exports.RealtimeVideoEncoderPreference = RealtimeVideoEncoderPreference; exports.RealtimeVideoFormat = RealtimeVideoFormat; exports.RealtimeModel = RealtimeModel; exports.defaultFrameRate = defaultFrameRate; exports.defaultCameraVideoFormat = defaultCameraVideoFormat; exports.MediaService = MediaService; exports.StoredFile = StoredFile; exports.StorageService = StorageService; exports.CameraPosition = CameraPosition; exports.RealtimeVideoTrack = RealtimeVideoTrack; exports.RealtimeMediaStream = RealtimeMediaStream; exports.RealtimeConnectionState = RealtimeConnectionState; exports.RealtimeReason = RealtimeReason; exports.RealtimeState = RealtimeState; exports.XmaxConfiguration = XmaxConfiguration; exports.XmaxClient = XmaxClient; exports.RealtimeConfiguration = RealtimeConfiguration; exports.VideoContentMode = VideoContentMode; exports.RealtimeContext = RealtimeContext; exports.XmaxVideoView = XmaxVideoView; exports.XmaxRealtimeVideoView = XmaxRealtimeVideoView;
8721
- //# sourceMappingURL=chunk-FH3OPC6F.cjs.map
8718
+ //# sourceMappingURL=chunk-5NIEZJP5.cjs.map