@xmov/avatar 2.0.0-beta.18 → 2.0.0-beta.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmov/avatar",
3
- "version": "2.0.0-beta.18",
3
+ "version": "2.0.0-beta.19",
4
4
  "description": "魔珐数字人 JS-SDK",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
package/src/index.ts CHANGED
@@ -1168,6 +1168,8 @@ export default class XmovAvatar {
1168
1168
  }
1169
1169
 
1170
1170
  protected start() {
1171
+ this.renderScheduler.render();
1172
+ this.ttsa?.start();
1171
1173
  // 先发布在线状态,再启动渲染:
1172
1174
  // 避免先 render() 触发 rendering -> visible(5) 后再发 online(0),造成 0/5 状态横跳
1173
1175
  if (this.pendingInvisibleMode) {
@@ -1178,9 +1180,6 @@ export default class XmovAvatar {
1178
1180
  // 避免重连重建房间过程中(资源未下载完)反复触发 online -> visible 状态横跳
1179
1181
  this.onStatusChange(AvatarStatus.online);
1180
1182
  }
1181
- this.renderScheduler.render();
1182
- this.ttsa?.start();
1183
-
1184
1183
  }
1185
1184
 
1186
1185
  protected onTtsaReady(_sessionInfo?: ISessionResponse) {
@@ -1590,6 +1589,7 @@ export default class XmovAvatar {
1590
1589
  * 切换隐身模式(暂停/恢复音视频实时渲染)
1591
1590
  */
1592
1591
  public switchInvisibleMode(): void {
1592
+ console.log("")
1593
1593
  if (this._isClientMode) { this._apiForwarder?.switchInvisibleMode(); return; }
1594
1594
  if (!this.renderScheduler) {
1595
1595
  (window as any).avatarSDKLogger?.warn(