UNPKG

@viguza/homebridge-ezviz

Version:

A short description about what your plugin does.

16 lines (15 loc) 975 B
import { Logging, StreamRequestCallback } from 'homebridge'; import { StreamingDelegate } from './streaming-delegate.js'; import { Readable, Writable } from 'stream'; export declare function doesFfmpegSupportCodec(codec: string, ffmpegPath: string): Promise<boolean>; export declare function getCodecsOutput(ffmpegPath: string): Promise<string>; export declare function getDefaultEncoder(ffmpegPath: string): Promise<string>; export declare function isFfmpegInstalled(ffmpegPath: string): Promise<boolean>; export declare function getSnapshot(url: string, customFfmpeg?: string): Promise<Buffer>; export declare class FfmpegProcess { private ff; constructor(title: string, command: Array<string>, log: Logging, callback: StreamRequestCallback | undefined, delegate: StreamingDelegate, sessionId: string, ffmpegDebugOutput: boolean, customFfmpeg?: string); stop(): void; getStdin(): Writable | null | undefined; getStdout(): Readable | null | undefined; }