Interface TrackProcessor<T, U>Experimental

interface TrackProcessor<T, U> {
    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>)