From a0984455210033d093311201bf8ab79a60a3f126 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Tue, 12 May 2026 22:39:49 +0200
Subject: [PATCH] avatar for nonauth bot
---
src/bot/orchestrator.ts | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/bot/orchestrator.ts b/src/bot/orchestrator.ts
index 0c9490e..2fe5809 100644
--- a/src/bot/orchestrator.ts
+++ b/src/bot/orchestrator.ts
@@ -433,9 +433,6 @@ export class BotOrchestrator {
// Ensure microphone is ON before joining (required for voice playback)
await this._ensureMicOn();
- if (config.botUseCanvasVideo) {
- await this._ensureCameraOn();
- }
// STEP 5: Poll for "Join now" on the pre-join screen
await this._takeScreenshot('step5-before-join-now', this._isDebugMode);
@@ -460,10 +457,6 @@ export class BotOrchestrator {
this._startKeepAlive();
await this._audioProcedure!.initialize();
- if (config.botUseCanvasVideo) {
- await this._ensureCameraOnInMeeting();
- this._startCanvasRebindAfterJoin();
- }
// Auth mode: wait for meeting UI to stabilize, then captions first,
// then chat. The chat toggle in the full Teams web app navigates to
@@ -485,7 +478,7 @@ export class BotOrchestrator {
private _startCanvasRebindAfterJoin(): void {
this._stopCanvasRebindAfterJoin();
- if (!config.botUseCanvasVideo || !this._audioProcedure) {
+ if (!config.botUseCanvasVideo || this._isAuthMode || !this._audioProcedure) {
return;
}
let n = 0;
@@ -1179,7 +1172,7 @@ export class BotOrchestrator {
this._options.language
);
this._audioProcedure = new AudioProcedure(this._page, this._logger, {
- useCanvasVideo: config.botUseCanvasVideo,
+ useCanvasVideo: config.botUseCanvasVideo && !authMode,
displayLabel: this._botName,
avatarBgColor: config.botAvatarBgColor,
avatarTextColor: config.botAvatarTextColor,
@@ -1223,7 +1216,7 @@ export class BotOrchestrator {
if (config.botDisableMediaWrappers) {
return;
}
- if (!config.botUseCanvasVideo || !this._audioProcedure) {
+ if (!config.botUseCanvasVideo || this._isAuthMode || !this._audioProcedure) {
return;
}
if (this._frameNavMediaRebindTimer) {