requestFrame

abstract fun requestFrame(position: Duration, callback: ReadbackCallback): Cancellable(source)

Renders the frame at position through the current effect chain and delivers it.

Must not disturb transport state: no seek is observable to the caller, the playhead does not move, and playback if running is unaffected.

Return

a handle that cancels the request.

Parameters

callback

Receives the frame, or the failure, exactly once.