Interface TrackProcessor<T, U>Experimental

interface TrackProcessor<
    T extends Kind,
    U extends ProcessorOptions<T> = ProcessorOptions<T>,
> {
    destroy: () => Promise<void>;
    init: (opts: U) => Promise<void>;
    name: string;
    onPublish?: (room: Room) => Promise<void>;
    onUnpublish?: () => Promise<void>;
    processedTrack?: MediaStreamTrack;
    restart: (opts: U) => Promise<void>;
}

Type Parameters

Properties

destroy: () => Promise<void>
init: (opts: U) => Promise<void>
name: string
onPublish?: (room: Room) => Promise<void>
onUnpublish?: () => Promise<void>
processedTrack?: MediaStreamTrack
restart: (opts: U) => Promise<void>