#[non_exhaustive]pub enum VideoControl {
Keyframe {
rid: String,
},
Rates(Vec<LayerRate>),
Republish(Vec<LayerSpec>),
Ended {
reason: String,
},
BackupStart(Vec<LayerSpec>),
BackupRates(Vec<LayerRate>),
BackupKeyframe {
rid: String,
},
BackupStop,
}Expand description
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
What the engine tells the producer of a publication.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Keyframe
The next frame of this layer must be a keyframe.
Rates(Vec<LayerRate>)
Which layers run, at what rates (only active layers need frames).
Republish(Vec<LayerSpec>)
The policy changed the layer set: the producer moves its encoders to these layers (the engine republishes the track; the lease is kept).
Ended
The publication ended (unpublished, video_disabled, server_unpublished,
lease_lost, …): close the source and the encoders.
BackupStart(Vec<LayerSpec>)
The backup is needed (a subscriber gets it): open its encoders for these layers and send its frames (in its codec), the first a keyframe. Only for a publication with a backup.
BackupRates(Vec<LayerRate>)
Which backup layers run, at what rates (a layer active without an encoder yet: open it, from the backup’s layers, the first frame a keyframe).
BackupKeyframe
The next frame of this backup layer must be a keyframe.
BackupStop
Nobody needs the backup now: stop its frames and close its encoders.
Trait Implementations§
Source§impl Clone for VideoControl
impl Clone for VideoControl
Source§impl Debug for VideoControl
impl Debug for VideoControl
impl Eq for VideoControl
Source§impl PartialEq for VideoControl
impl PartialEq for VideoControl
impl StructuralPartialEq for VideoControl
Auto Trait Implementations§
impl Forget for VideoControl
impl Freeze for VideoControl
impl Move for VideoControl
impl RefUnwindSafe for VideoControl
impl Send for VideoControl
impl Sync for VideoControl
impl Unpin for VideoControl
impl UnsafeUnpin for VideoControl
impl UnwindSafe for VideoControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more