#[non_exhaustive]pub struct VideoTrackOptions {
pub encoder: Option<TrackVideoEncoder>,
pub h264_backend: Option<H264Backend>,
pub frame_metadata: Option<bool>,
}Expand description
Options for [PeerConnectionFactory::create_video_track_with_options].
All fields optional; Default::default() produces exactly what
[PeerConnectionFactory::create_video_track] produces. The struct is
#[non_exhaustive] — construct via Default and assign fields:
let mut opts = VideoTrackOptions::default();
opts.encoder = Some(TrackVideoEncoder::PreEncoded(PreEncodedOptions::new(1280, 720)));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.encoder: Option<TrackVideoEncoder>Encoder override for this track. None (default) = libwebrtc’s
builtin/software pipeline encodes.
h264_backend: Option<H264Backend>Which H.264 backend encodes this track when it is raw and H264 wins
negotiation. Errors when set together with encoder.
frame_metadata: Option<bool>Per-track frame-metadata switch. None (default) inherits the
factory’s kill switch
([PeerConnectionFactoryBuilder::with_metadata]); Some(false)
disables trailers for this track only — pushes with user_data drop
it silently (the frame itself still flows) and the peer sees no
trailer whatever the connection negotiated. The SDP stays
session-level either way.