Go back up


useRemoteAVToggleResult

Properties

isAudioEnabled

• isAudioEnabled: boolean

true if unmuted and vice versa


isVideoEnabled

• isVideoEnabled: boolean


setVolume

• Optional setVolume: (volume: number) => void

Type declaration

â–¸ (volume): void

use this function to set the volume of peer's audio track for the local user, the function will only be present if the remote peer has an audio track to change volume for

Parameters
NameType
volumenumber
Returns

void


toggleAudio

• Optional toggleAudio: () => void

Type declaration

â–¸ (): void

use this function to toggle audio state, the function will only be present if the user has permission to mute/unmute remote audio

Returns

void


toggleVideo

• Optional toggleVideo: () => void

Type declaration

â–¸ (): void

use this function to toggle video state, the function will only be present if the user has permission to mute/unmute remote video

Returns

void


volume

• Optional volume: number

current volume of the audio track


Have a suggestion? Recommend changes ->