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

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.19",
3
+ "version": "2.0.0-beta.21",
4
4
  "description": "魔珐数字人 JS-SDK",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
package/src/index.ts CHANGED
@@ -516,7 +516,11 @@ export default class XmovAvatar {
516
516
  }
517
517
  }
518
518
 
519
- async init(params: IInitParams): Promise<ISessionResponse | null | undefined> {
519
+ async init(params: IInitParams): Promise<void> {
520
+ await this.initializeSession(params);
521
+ }
522
+
523
+ protected async initializeSession(params: IInitParams): Promise<ISessionResponse | null | undefined> {
520
524
  // 浏览器能力检查
521
525
  const capabilityReport = await checkCapability(this.options.audioOnlyMode);
522
526
  if (!capabilityReport.supported) {