pub struct TranscoderContext {
pub broadcast: String,
pub track: String,
pub meta: FragmentMeta,
pub rendition: RenditionSpec,
}Expand description
Snapshot of the (broadcast, track, FragmentMeta, rendition)
tuple a fresh Transcoder sees at construction time.
meta is a snapshot at transcoder-build time; see the same
caveat as [lvqr_agent::AgentContext::meta]. For the 4.6
software / hardware encoders the codec + timescale never
change mid-broadcast, so the snapshot is sufficient.
Fields§
§broadcast: StringSource broadcast name (<app>/<name>), e.g. "live/cam1".
Session 105 B’s output broadcast name is derived as
<broadcast>/<rendition.name> (e.g. live/cam1/720p).
track: StringSource track name. Typically "0.mp4" for video; session
104 A filters non-video tracks at the factory level via
PassthroughTranscoderFactory::build.
meta: FragmentMetaCodec, timescale, and (optionally) the init segment of the source track at transcoder-build time.
rendition: RenditionSpecTarget rendition for this transcoder instance. One transcoder + one rendition per ladder rung.
Trait Implementations§
Source§impl Clone for TranscoderContext
impl Clone for TranscoderContext
Source§fn clone(&self) -> TranscoderContext
fn clone(&self) -> TranscoderContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more