Function useLocalParticipant

  • The useLocalParticipant hook returns the local participant and the associated state around the participant.

    Example

    const { localParticipant } = useLocalParticipant();
    

    Parameters

    Returns { cameraTrack: TrackPublication | undefined; isCameraEnabled: boolean; isMicrophoneEnabled: boolean; isScreenShareEnabled: boolean; lastCameraError: Error | undefined; lastMicrophoneError: Error | undefined; localParticipant: LocalParticipant; microphoneTrack: TrackPublication | undefined }

    • cameraTrack: TrackPublication | undefined
    • isCameraEnabled: boolean
    • isMicrophoneEnabled: boolean
    • isScreenShareEnabled: boolean
    • lastCameraError: Error | undefined
    • lastMicrophoneError: Error | undefined
    • localParticipant: LocalParticipant
    • microphoneTrack: TrackPublication | undefined

Generated using TypeDoc