@100mslive/hms-video-store
Version:
@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow
23 lines (22 loc) • 942 B
TypeScript
import { HMSException } from '../../error/HMSException';
import { EventBus } from '../../events/EventBus';
export declare class VideoPluginsAnalytics {
private eventBus;
private readonly TAG;
private readonly initTime;
private readonly addedTimestamps;
private readonly preProcessingAvgs;
private readonly processingAvgs;
private readonly pluginAdded;
private readonly pluginInputFrameRate;
private readonly pluginFrameRate;
constructor(eventBus: EventBus);
added(name: string, inputFrameRate?: number, pluginFrameRate?: number): void;
removed(name: string): void;
failure(name: string, error: HMSException): void;
initWithTime<T>(name: string, initFn: () => Promise<T>): Promise<void>;
preProcessWithTime<T>(preProcessFn: () => Promise<T>): Promise<void>;
processWithTime<T>(name: string, processFn: () => Promise<T>): Promise<void>;
private timeInMs;
private clean;
}