UNPKG

@sendbird/calls-react-native

Version:

Sendbird Calls SDK for React Native: Empower React Native apps with seamless audio, video, and group calling. Build interactive communication easily.

41 lines (33 loc) 836 B
import type { User } from './User'; import type { AsJSInterface, JSMediaDeviceControl } from './index'; export interface ParticipantProperties { participantId: string; user: User; state: ParticipantState; enteredAt: number; exitedAt: number; duration: number; isAudioEnabled: boolean; isVideoEnabled: boolean; updatedAt: number; } type JSLocalParticipantMediaDeviceControl = Pick< JSMediaDeviceControl, | 'muteMicrophone' | 'unmuteMicrophone' | 'switchCamera' | 'startVideo' | 'stopVideo' | 'resumeVideoCapturer' | 'resumeAudioTrack' >; export type LocalParticipantMethods = AsJSInterface< JSLocalParticipantMediaDeviceControl, 'android', 'resumeVideoCapturer' | 'resumeAudioTrack' >; export enum ParticipantState { ENTERED = 'ENTERED', CONNECTED = 'CONNECTED', EXITED = 'EXITED', }