From f7fa0357ddba30687e2714096c8e60afaceeed8c Mon Sep 17 00:00:00 2001 From: Bryant Date: Thu, 31 Oct 2024 08:23:25 +1100 Subject: [PATCH] chore: use transport.assistantVideoEnabled --- vapi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vapi.ts b/vapi.ts index e081dbd..a26ebfb 100644 --- a/vapi.ts +++ b/vapi.ts @@ -203,8 +203,8 @@ export default class Vapi extends VapiEventEmitter { const isVideoRecordingEnabled = webCall?.artifactPlan?.videoRecordingEnabled ?? false; - // @ts-expect-error Tavus voice exists - const isVideoEnabled = webCall.assistant?.voice?.provider === 'tavus'; + // @ts-expect-error This exists + const isVideoEnabled = webCall.transport?.assistantVideoEnabled ?? false; this.call = DailyIframe.createCallObject({ audioSource: this.dailyCallObject.audioSource ?? true,