import type { CoreRoom } from '../CoreRoom'; import type { EngineHooks, ExtensionContext, LocalParticipantApiProvider, SlotProvider } from '../extensions'; import type LocalTrack from '../track/LocalTrack'; import type LocalTrackPublication from '../track/LocalTrackPublication'; import type { BackupVideoCodec, ScreenShareCaptureOptions, TrackPublishOptions, VideoCaptureOptions } from '../track/options'; /** * Methods the `video` extension adds to the local participant. * @experimental */ export interface VideoLocalParticipantApi { /** * Enable or disable a participant's camera track. * * If a track has already published, it'll mute or unmute the track. * Resolves with a `LocalTrackPublication` instance if successful and `undefined` otherwise */ setCameraEnabled(enabled: boolean, options?: VideoCaptureOptions, publishOptions?: TrackPublishOptions): Promise; /** * Start or stop sharing a participant's screen * Resolves with a `LocalTrackPublication` instance if successful and `undefined` otherwise */ setScreenShareEnabled(enabled: boolean, options?: ScreenShareCaptureOptions, publishOptions?: TrackPublishOptions): Promise; /** * Publish both camera and microphone at the same time. This is useful for * displaying a single Permission Dialog box to the end user. */ enableCameraAndMicrophone(): Promise; /** * Creates a screen capture tracks with getDisplayMedia(). * A LocalVideoTrack is always created and returned. * If { audio: true }, and the browser supports audio capture, a LocalAudioTrack is also created. */ createScreenTracks(options?: ScreenShareCaptureOptions): Promise>; /** @internal * publish additional codec to existing track */ publishAdditionalCodecForTrack(track: LocalTrack | MediaStreamTrack, videoCodec: BackupVideoCodec, options?: TrackPublishOptions): Promise; } /** * Video publishing: camera and screen share capture, simulcast, SVC and backup codecs. * Receiving video is part of core and needs no extension. * @experimental */ export declare const video: { key: symbol; install(room: CoreRoom, ctx: ExtensionContext): LocalParticipantApiProvider & SlotProvider<"videoPublisher"> & EngineHooks; }; //# sourceMappingURL=extension.d.ts.map