Skip to main content

Calls

ChatKitty JS SDK / Exports / Calls

Interface: Calls

Table of contents

Properties

Methods

Properties

isMuted

isMuted: boolean

Defined in

lib/chatkitty.ts:2453


localStream

localStream: null | MediaStream

Defined in

lib/chatkitty.ts:2451

Methods

close

close(): void

Returns

void

Defined in

lib/chatkitty.ts:2482


initialize

initialize(configuration): void

Parameters

NameType
configurationObject
configuration.mediaObject
configuration.media.audioboolean
configuration.media.videoboolean

Returns

void

Defined in

lib/chatkitty.ts:2455


leaveCall

leaveCall(): void

Returns

void

Defined in

lib/chatkitty.ts:2459


onParticipantAcceptedCall

onParticipantAcceptedCall(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (user: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:2464


onParticipantActive

onParticipantActive(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<{ stream: MediaStream ; user: User }> | (user: User, stream: MediaStream) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:2472


onParticipantLeftCall

onParticipantLeftCall(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (user: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:2478


onParticipantRejectedCall

onParticipantRejectedCall(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (user: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:2468


switchCamera

switchCamera(): void

Returns

void

Defined in

lib/chatkitty.ts:2461


toggleMute

toggleMute(): void

Returns

void

Defined in

lib/chatkitty.ts:2462