avatar for nonauth bot
This commit is contained in:
parent
414e2a5e40
commit
a098445521
1 changed files with 3 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue