• Fire a callback when the video reaches a new frame. Returns a promise which resolves after callback (which may be async) completes.

    MAINTENANCE_TODO: Find a way to implement this for browsers without requestVideoFrameCallback as well, similar to the timeWatcher path in startPlayingAndWaitForVideo. If that path is proven to work well, we can consider getting rid of the requestVideoFrameCallback path.


    • video: HTMLVideoElement
    • callback: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Promise<void>

Generated using TypeDoc