UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

39 lines (38 loc) 1.31 kB
import { IClient, HttpOptions } from './internal/common'; export type CamStreamerAPIOptions = HttpOptions; export type TStreamAttributes = { enabled: string; active: string; audioSource: string; avSyncMsec: string; internalVapixParameters: string; userVapixParameters: string; outputParameters: string; outputType: string; mediaServerUrl: string; inputType: string; inputUrl: string; forceStereo: string; streamDelay: string; statusLed: string; statusPort: string; callApi: string; trigger: string; schedule: string; prepareAhead: string; startTime: string; stopTime: string; }; export type TStreamList = Record<string, TStreamAttributes>; export declare class CamStreamerAPI { private client; constructor(options?: CamStreamerAPIOptions | IClient); getStreamList(): Promise<TStreamList>; getStream(streamID: string): Promise<TStreamAttributes>; getStreamParameter(streamID: string, paramName: string): Promise<string>; setStream(streamID: string, params: TStreamAttributes): Promise<void>; setStreamParameter(streamID: string, paramName: string, value: string): Promise<void>; isStreaming(streamID: string): Promise<boolean>; deleteStream(streamID: string): Promise<void>; private get; }