#[non_exhaustive]pub struct VideoInit {
pub format: VideoFormat,
pub data: Bytes,
pub label: Option<String>,
pub hint: VideoHint,
pub priority: i8,
}Expand description
What a video importer needs to start: a format, optional init bytes, a label, and hints.
format selects the codec parser ("h264", "h265", "vp8", …). data may be empty for a
format that resolves in band; a hint can pin fields the stream never reveals
(bitrate) or publish the catalog before the first keyframe. See VideoHint.
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.format: VideoFormatThe video format, e.g. "h264" or "vp8".
data: BytesCodec init bytes (an avcC, an hvcC, …). May be empty for a format that resolves in band.
label: Option<String>Human-readable rendition name for a track picker.
hint: VideoHintCatalog fields the stream cannot reveal itself.
priority: i8The track’s priority, which a bandwidth::Allocator
funds in order. A rendition published above a lower one of the same source sits one
below it, so the lower one is funded first. Defaults to
PRIORITY.video.