UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

24 lines (23 loc) 749 B
import { CameraOpts } from './rtsp-h264-mjpeg-interface'; export declare const DEFAULT_UPLINK = "wss://video-broker.larva.io/"; export declare class Camera { readonly options: CameraOpts; readonly server: string; readonly wsurl: string; readonly id: string; readonly $el: HTMLVideoElement | HTMLCanvasElement; private isH264; private pipeline?; private isLoading; private isOpened; constructor(opts: CameraOpts, server: string); static getLocalVideoServer(): string; static get elementCameraIdAttribute(): string; open(): Promise<void>; mute(): void; volume(volume?: number): void; close(): void; set loading(val: boolean); get loading(): boolean; get opened(): boolean; }