UNPKG

@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

18 lines (14 loc) 529 B
export interface HMSMediaStreamPlugin { /** * The name is meant to uniquely specify a plugin instance. This will be used to track number of plugins * added to the track, and same name won't be allowed twice. */ getName(): string; apply(stream: MediaStream): MediaStream; stop(): void; /** * Optional method to get performance metrics from the plugin. * @returns metrics object with fps, processing time, etc. or undefined if not supported */ getMetrics?(): Record<string, unknown> | undefined; }