Skip to main content

InlineEncoderCallback

Type Alias InlineEncoderCallback 

Source
pub type InlineEncoderCallback = Box<dyn FnMut(&RawVideoFrame<'_>) -> Option<EncodedVideoFrame> + Send + 'static>;
Expand description

The boxed encoder callback a TrackVideoEncoder::Inline track hands the factory โ€” called synchronously with every raw I420 frame on the encoder thread; return Some(encoded) to forward, None to drop.

Aliased Typeยง

pub struct InlineEncoderCallback(/* private fields */);