@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/dist/agent/avatar.cjs +1 -1
- package/dist/agent/avatar.modern.js +1 -1
- package/dist/agent/avatar.module.js +1 -1
- package/dist/agent/avatar.umd.js +1 -1
- package/dist/agent/index.d.ts +8 -4
- package/dist/agent/types.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -1
package/package.json
CHANGED
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<
|
|
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) {
|