@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
15 lines (14 loc) • 550 B
TypeScript
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;
}