@spatialwalk/avatarkit 1.0.0-beta.75 → 1.0.0-beta.76
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-
|
|
4
|
+
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-ZN-iK3b8.js";
|
|
5
5
|
class StreamingAudioPlayer {
|
|
6
6
|
// Mark if AudioContext is being resumed, avoid concurrent resume requests
|
|
7
7
|
constructor(options) {
|
|
@@ -7294,6 +7294,7 @@ function extractResourceUrls(meta) {
|
|
|
7294
7294
|
var Environment = /* @__PURE__ */ ((Environment2) => {
|
|
7295
7295
|
Environment2["cn"] = "cn";
|
|
7296
7296
|
Environment2["intl"] = "intl";
|
|
7297
|
+
Environment2["test"] = "test";
|
|
7297
7298
|
return Environment2;
|
|
7298
7299
|
})(Environment || {});
|
|
7299
7300
|
var DrivingServiceMode = /* @__PURE__ */ ((DrivingServiceMode2) => {
|
|
@@ -8243,7 +8244,7 @@ const _AnimationPlayer = class _AnimationPlayer {
|
|
|
8243
8244
|
if (this.streamingPlayer) {
|
|
8244
8245
|
return;
|
|
8245
8246
|
}
|
|
8246
|
-
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-
|
|
8247
|
+
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-CuNtk6eL.js");
|
|
8247
8248
|
const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
|
|
8248
8249
|
const audioFormat = AvatarSDK2.getAudioFormat();
|
|
8249
8250
|
this.streamingPlayer = new StreamingAudioPlayer({
|
|
@@ -8444,7 +8445,8 @@ __publicField(_AnimationPlayer, "audioUnlocked", false);
|
|
|
8444
8445
|
let AnimationPlayer = _AnimationPlayer;
|
|
8445
8446
|
const DEFAULT_SDK_CONFIG = {
|
|
8446
8447
|
[Environment.cn]: "https://api.open.spatialwalk.top",
|
|
8447
|
-
[Environment.intl]: "https://api.intl.spatialwalk.cloud"
|
|
8448
|
+
[Environment.intl]: "https://api.intl.spatialwalk.cloud",
|
|
8449
|
+
[Environment.test]: "https://api-test.spatialwalk.top"
|
|
8448
8450
|
};
|
|
8449
8451
|
const configCache = {
|
|
8450
8452
|
config: null,
|
|
@@ -8482,6 +8484,9 @@ async function fetchSdkConfig(version) {
|
|
|
8482
8484
|
} else if (data.endpoints.intl) {
|
|
8483
8485
|
config[Environment.intl] = `https://${data.endpoints.intl}`;
|
|
8484
8486
|
}
|
|
8487
|
+
if (data.endpoints.test) {
|
|
8488
|
+
config[Environment.test] = `https://${data.endpoints.test}`;
|
|
8489
|
+
}
|
|
8485
8490
|
configCache.config = config;
|
|
8486
8491
|
logger.log(`[SdkConfigLoader] SDK config fetched successfully:`, config);
|
|
8487
8492
|
} catch (error) {
|
|
@@ -9936,7 +9941,7 @@ class AvatarSDK {
|
|
|
9936
9941
|
}
|
|
9937
9942
|
__publicField(AvatarSDK, "_isInitialized", false);
|
|
9938
9943
|
__publicField(AvatarSDK, "_configuration", null);
|
|
9939
|
-
__publicField(AvatarSDK, "_version", "1.0.0-beta.
|
|
9944
|
+
__publicField(AvatarSDK, "_version", "1.0.0-beta.76");
|
|
9940
9945
|
__publicField(AvatarSDK, "_avatarCore", null);
|
|
9941
9946
|
__publicField(AvatarSDK, "_dynamicSdkConfig", null);
|
|
9942
9947
|
const AvatarSDK$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
package/dist/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED