Member Junction
    Preparing search index...

    What a camera-and-microphone controller offers. LocalMediaController is the browser's; a host on another platform, or a test, can supply its own.

    interface ILocalMediaController {
        State: LocalMediaState;
        State$: Observable<LocalMediaState>;
        Dispose(): void;
        GetStream(kind: LocalMediaKind): MediaStream;
        RefreshDevices(): Promise<MediaDevice[]>;
        Start(kind: LocalMediaKind, deviceId?: string): Promise<LocalMediaResult>;
        Stop(kind: LocalMediaKind): void;
        SwitchDevice(
            kind: LocalMediaKind,
            deviceId: string,
        ): Promise<LocalMediaResult>;
    }

    Implemented by

    Index

    Properties

    The current state.

    State$: Observable<LocalMediaState>

    The state, now and on every change. Completes on Dispose.

    Methods