LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Interface VideoLocalParticipantApiExperimental

    Methods the video extension adds to the local participant.

    interface VideoLocalParticipantApi {
        createScreenTracks(
            options?: ScreenShareCaptureOptions,
        ): Promise<LocalTrack<Kind>[]>;
        enableCameraAndMicrophone(): Promise<void>;
        setCameraEnabled(
            enabled: boolean,
            options?: VideoCaptureOptions,
            publishOptions?: TrackPublishOptions,
        ): Promise<LocalTrackPublication | undefined>;
        setScreenShareEnabled(
            enabled: boolean,
            options?: ScreenShareCaptureOptions,
            publishOptions?: TrackPublishOptions,
        ): Promise<LocalTrackPublication | undefined>;
    }

    Hierarchy (View Summary)

    Index
    • Experimental

      Publish both camera and microphone at the same time. This is useful for displaying a single Permission Dialog box to the end user.

      Returns Promise<void>