@zeewain/3d-avatar-sdk 2.1.5 → 2.2.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.
@@ -16,7 +16,7 @@
16
16
  "lint:all-fix": "npm run lint:fix && npm run lint:css-fix"
17
17
  },
18
18
  "dependencies": {
19
- "@zeewain/3d-avatar-sdk": "^2.1.5",
19
+ "@zeewain/3d-avatar-sdk": "^2.2.2",
20
20
  "core-js": "^3.8.3",
21
21
  "element-ui": "^2.15.13",
22
22
  "vue": "^2.6.14"
@@ -24,7 +24,7 @@
24
24
  "@element-plus/icons-vue": "^2.3.1",
25
25
  "@vueuse/core": "^13.5.0",
26
26
  "@vueuse/integrations": "^13.5.0",
27
- "@zeewain/3d-avatar-sdk": "^2.1.5",
27
+ "@zeewain/3d-avatar-sdk": "^2.2.2",
28
28
  "dayjs": "^1.11.13",
29
29
  "element-plus": "^2.10.4",
30
30
  "vite-plugin-html": "^3.2.2",
@@ -475,12 +475,12 @@ async function handleTextBroadcast(params: {
475
475
  type: BroadcastType.TEXT,
476
476
  humanCode: params.avatarCode || globalConfig.avatarCode,
477
477
  text: params.text,
478
- volume: params.volume ?? 100,
478
+ volume: params.volume ?? 1,
479
479
  voiceCode: params.voiceCode || '',
480
480
  speed: params.speed ?? 1,
481
481
  isSubtitle: false,
482
482
  motionList: params.broadcastMotionString?.split(',').filter(item => item.trim()) || [],
483
- motionPlayMode: 'random'
483
+ motionPlayMode:'sequence'
484
484
  };
485
485
 
486
486
  // 队列播报模式下使用传入的isAppend参数,单次播报模式下使用sdkStatus.isStartBroadcast
@@ -115,7 +115,7 @@ function handleDestroySDK() {
115
115
  height: 100%;
116
116
  max-height: 100%; // 确保不超过父容器
117
117
  overflow: hidden;
118
- background-color: #000;
118
+ background-color: #fff;
119
119
  border-radius: 4px;
120
120
  }
121
121
  .unity-tip {
package/dist/index.d.ts CHANGED
@@ -1441,7 +1441,7 @@ declare class ZEEAvatarSDK {
1441
1441
  * SDK 版本号
1442
1442
  * @const {string} SDK_VERSION
1443
1443
  */
1444
- declare const SDK_VERSION = "2.1.5";
1444
+ declare const SDK_VERSION = "2.2.2";
1445
1445
 
1446
1446
  export { AvatarCameraType, AvatarOperationType, AvatarService, BroadcastOperationType, BroadcastService, BroadcastType, ConfigErrorCode, ERROR_CODE_MAP, ErrorCategory, NetworkErrorCode, OperationErrorCode, ResourceErrorCode, SDKError, SDK_VERSION, SystemErrorCode, UnityOperationStatus, ZEEAvatarLoader, ZEEAvatarSDK, getErrorInfo };
1447
1447
  export type { IAvatarAPI, IAvatarCallbackResponse, IAvatarSDKConfig, IBroadcastAPI, IBroadcastCallbacks, IBroadcastParams, IBroadcastResponse, IBroadcastServiceConfig, IUnityCallbackManager, IUnityCallbackResponse, IUnityInstance, IUnityMessageSender, IUnityServiceConfig, SDKErrorCode, TOperationType };