Interface VideoFrameProcessorTimer

[[VideoFrameProcessorTimer]] defines a timer used in the context of video frame processing.

interface VideoFrameProcessorTimer {
    destroy(): Promise<void>;
    start(delay: number, callback: () => void): Promise<void>;
}

Hierarchy (View Summary)

Implemented by

Methods

Methods

  • Starts the timer with a specified delay and callback function.

    Parameters

    • delay: number

      The delay in milliseconds after which the callback function should be invoked.

    • callback: () => void

      The function to be called when the timer expires.

    Returns Promise<void>