UNPKG

lavva.exalushome.webcams

Version:

Library implementing webcams and abstraction layers for webcams configuration API in ExalusHome system

17 lines (16 loc) 569 B
import { IDeviceChannel } from '../../exalushome-library/build/js/Services/Devices/IDeviceChannel'; export interface IWebCam { GetRTCMediaStreamAsync(): Promise<MediaStream>; StopPeerAsync(): Promise<void>; } export declare class WebCam implements IWebCam { private readonly _domain; private readonly _baseServerUrl; private _pc; private readonly _log; private _channel; SetDeviceChannel(channel: IDeviceChannel): void; private _GetRTCStream; StopPeerAsync(): Promise<void>; GetRTCMediaStreamAsync(): Promise<MediaStream>; }