@xmov/avatar 2.3.1 → 2.4.0-alpha.1
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 +2 -0
- package/dist/control/ttsa.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- 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/dist/modules/ResourceManager.d.ts +2 -0
- package/dist/modules/sentry-reporter.d.ts +58 -0
- package/dist/types/index.d.ts +11 -2
- package/dist/utils/encodeToken.d.ts +7 -0
- package/package.json +9 -7
- package/src/control/ttsa.ts +45 -5
- package/src/global.d.ts +7 -0
- package/src/index.ts +95 -6
- package/src/modules/ResourceManager.ts +17 -4
- package/src/modules/sentry-reporter.ts +171 -0
- package/src/types/index.ts +13 -0
- package/src/utils/encodeToken.ts +15 -0
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export default class XmovAvatar {
|
|
|
17
17
|
private networkMonitor;
|
|
18
18
|
private ttsa;
|
|
19
19
|
private debugOverlay;
|
|
20
|
+
private sentryReporter;
|
|
21
|
+
/** 首帧 span 句柄(init 时启动,首次 BODY 帧到达时结束) */
|
|
22
|
+
private firstFrameSpan;
|
|
20
23
|
private _offlineTimer;
|
|
21
24
|
private readonly _offlineInterval;
|
|
22
25
|
private _env;
|
|
@@ -138,6 +141,7 @@ export default class XmovAvatar {
|
|
|
138
141
|
isDestroyed(): boolean;
|
|
139
142
|
destroyClient(): Promise<void>;
|
|
140
143
|
destroy(stop_reason?: string): Promise<void>;
|
|
144
|
+
protected disconnectClientForDestroy(stopReason: string): Promise<void>;
|
|
141
145
|
idle(): void;
|
|
142
146
|
listen(): void;
|
|
143
147
|
think(): void;
|
|
@@ -146,6 +150,7 @@ export default class XmovAvatar {
|
|
|
146
150
|
client_speak_id: string;
|
|
147
151
|
client_frame: number;
|
|
148
152
|
}): string | undefined;
|
|
153
|
+
private speakInternal;
|
|
149
154
|
setOffsetFrame(offsetFrame: number): void;
|
|
150
155
|
syncTimestamp(): void;
|
|
151
156
|
/**
|