From eb831a4e786bf803e55984059a53cb74328a925b Mon Sep 17 00:00:00 2001 From: Fidel Garcia Date: Wed, 3 Apr 2024 10:55:35 -0600 Subject: [PATCH] Fix switch camera method description --- dist/types/preview.d.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/types/preview.d.ts b/dist/types/preview.d.ts index f247e48..a5963b7 100644 --- a/dist/types/preview.d.ts +++ b/dist/types/preview.d.ts @@ -110,15 +110,15 @@ export interface LocalVideoTrack { * Determines whether to crop the background image to an appropriate aspect ratio (16/9), default is false. */ cropped?: boolean; - }, + } ): Promise; /** * Stops local video capture. */ stop(): Promise; /** - * Switch microphone. - * @param deviceId The ID of the microphone to switch to. + * Switch camera. + * @param deviceId The ID of the camera to switch to. */ switchCamera(deviceId: string): Promise; /** @@ -128,7 +128,7 @@ export interface LocalVideoTrack { */ updateVirtualBackground( imageUrl?: string, - cropped?: boolean, + cropped?: boolean ): Promise; } /** @@ -164,5 +164,7 @@ export interface LocalAudioTrack { Tests the microphone, usually used to test the microphone before a meeting. * @param options the test microphone option. */ - testMicrophone(options?: TestMicrophoneOption): TestMicrophoneReturn | undefined; + testMicrophone( + options?: TestMicrophoneOption + ): TestMicrophoneReturn | undefined; }