Interface UserMediaStream

Interface for controlling and interacting with a user media stream, including starting, inspecting, stopping the stream, and updating configuration options.

interface UserMediaStream {
    inspect: (() => Promise<undefined | UserMediaStreamCapabilities>);
    setOptions: ((userMediaStreamOptions) => void);
    start: (() => Promise<MediaStream>);
    stop: (() => Promise<void>);
}

Properties

inspect: (() => Promise<undefined | UserMediaStreamCapabilities>)

Type declaration

setOptions: ((userMediaStreamOptions) => void)

Type declaration

start: (() => Promise<MediaStream>)

Type declaration

    • (): Promise<MediaStream>
    • Returns Promise<MediaStream>

stop: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Generated using TypeDoc