Skip to content

Commit

Permalink
Merge pull request #74 from VapiAI/bryant/update-video-enabled-flag
Browse files Browse the repository at this point in the history
chore: use transport.assistantVideoEnabled
  • Loading branch information
bryantanderson authored Oct 30, 2024
2 parents a5e221e + f7fa035 commit b324a18
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 b324a18

Please sign in to comment.