avatar for nonauth bot

This commit is contained in:
ValueOn AG 2026-05-12 22:39:49 +02:00
parent 414e2a5e40
commit a098445521

View file

@ -433,9 +433,6 @@ export class BotOrchestrator {
// Ensure microphone is ON before joining (required for voice playback) // Ensure microphone is ON before joining (required for voice playback)
await this._ensureMicOn(); await this._ensureMicOn();
if (config.botUseCanvasVideo) {
await this._ensureCameraOn();
}
// STEP 5: Poll for "Join now" on the pre-join screen // STEP 5: Poll for "Join now" on the pre-join screen
await this._takeScreenshot('step5-before-join-now', this._isDebugMode); await this._takeScreenshot('step5-before-join-now', this._isDebugMode);
@ -460,10 +457,6 @@ export class BotOrchestrator {
this._startKeepAlive(); this._startKeepAlive();
await this._audioProcedure!.initialize(); await this._audioProcedure!.initialize();
if (config.botUseCanvasVideo) {
await this._ensureCameraOnInMeeting();
this._startCanvasRebindAfterJoin();
}
// Auth mode: wait for meeting UI to stabilize, then captions first, // Auth mode: wait for meeting UI to stabilize, then captions first,
// then chat. The chat toggle in the full Teams web app navigates to // then chat. The chat toggle in the full Teams web app navigates to
@ -485,7 +478,7 @@ export class BotOrchestrator {
private _startCanvasRebindAfterJoin(): void { private _startCanvasRebindAfterJoin(): void {
this._stopCanvasRebindAfterJoin(); this._stopCanvasRebindAfterJoin();
if (!config.botUseCanvasVideo || !this._audioProcedure) { if (!config.botUseCanvasVideo || this._isAuthMode || !this._audioProcedure) {
return; return;
} }
let n = 0; let n = 0;
@ -1179,7 +1172,7 @@ export class BotOrchestrator {
this._options.language this._options.language
); );
this._audioProcedure = new AudioProcedure(this._page, this._logger, { this._audioProcedure = new AudioProcedure(this._page, this._logger, {
useCanvasVideo: config.botUseCanvasVideo, useCanvasVideo: config.botUseCanvasVideo && !authMode,
displayLabel: this._botName, displayLabel: this._botName,
avatarBgColor: config.botAvatarBgColor, avatarBgColor: config.botAvatarBgColor,
avatarTextColor: config.botAvatarTextColor, avatarTextColor: config.botAvatarTextColor,
@ -1223,7 +1216,7 @@ export class BotOrchestrator {
if (config.botDisableMediaWrappers) { if (config.botDisableMediaWrappers) {
return; return;
} }
if (!config.botUseCanvasVideo || !this._audioProcedure) { if (!config.botUseCanvasVideo || this._isAuthMode || !this._audioProcedure) {
return; return;
} }
if (this._frameNavMediaRebindTimer) { if (this._frameNavMediaRebindTimer) {