Skip to main content

Actions Library

Provides methods to execute specific actions like Muting / Unmuting a user and Joining / Creating a Room.

You can access them under the customization-api module as a named export.


useCreateRoom(): createMeeting

Returns an asynchronous function to create a room with the given options.


Returns:

createMeeting(roomTitle: string, enablePSTN?: boolean, isSeperateHostLink?: boolean): Promise<void>


useJoinRoom(): joinRoom

Returns an asynchronous function to join a room with the given phrase.


Returns:

joinRoom(roomId: string): Promise<void>


useMuteToggleLocal(): muteToggleLocal

Returns an asynchronous function to toggle muted state of the given track type for the local user.


Returns:

muteToggleLocal(type: MUTE_LOCAL_TYPE): Promise<void>


useRemoteMute(): muteToggleRemote

Returns an asynchronous function to toggle muted state of the given track type for a remote user with the given uid or if no uid provided, mutes everyone else in the room.


Returns:

muteToggleLocal(type: MUTE_REMOTE_TYPE, uid?: UidType ): Promise<void>


useRemoteEndCall(): remoteEndCall

Returns a function to end the call for a remote user with the given uid.


Returns:

remoteEndCall(uid: UidType): void


useEndCall(): endCall

Returns a function to end the call for a local user.


Returns:

endCall(): void


useLocalAudio(): localAudio

Returns a object that contains enableAudioButton/disableAudioButton function which used to enable/disable local user audio button


Returns:

enableAudioButton(): void

disableAudioButton(): void


TYPES:


MUTE_LOCAL_TYPE

NameValue
audio0
video1

MUTE_REMOTE_TYPE

NameValue
audio0
video1