Skip to content

Commit

Permalink
chore: use transport.assistantVideoEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantanderson committed Oct 30, 2024
1 parent a5e221e commit f7fa035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7fa035

Please sign in to comment.