Skip to main content

OnVideoFrameCallbackType

Type Alias OnVideoFrameCallbackType 

Source
pub type OnVideoFrameCallbackType = extern "C" fn(RefAny, CallbackInfo, VideoFrame) -> Update;
Expand description

User hook fired once per captured/decoded frame - the backreference dependency-injection pattern (see architecture.md). A capture widget’s private writeback invokes it with each VideoFrame, so application code can apply effects, save the frame into its own data model, or send it over the network (azul-meet). Returns Update like any callback. Wired via CameraWidget::with_on_frame / ScreenCaptureWidget::with_on_frame / VideoWidget::with_on_frame.