pub struct Rendition { /* private fields */ }Expand description
Another encoding of a MediaSource’s video.
Implementations§
Source§impl Rendition
impl Rendition
Sourcepub fn configure_video(&mut self, codec: &str) -> Result<(), MediaSourceError>
pub fn configure_video(&mut self, codec: &str) -> Result<(), MediaSourceError>
As MediaSource::configure_video; it may differ from the video’s
codec.
Sourcepub fn push_video(
&mut self,
data: impl Into<Bytes>,
timestamp_micros: u64,
) -> Result<(), MediaSourceError>
pub fn push_video( &mut self, data: impl Into<Bytes>, timestamp_micros: u64, ) -> Result<(), MediaSourceError>
An encoded frame of the same picture as a video frame, at that frame’s timestamp.
Auto Trait Implementations§
impl !Freeze for Rendition
impl !RefUnwindSafe for Rendition
impl !UnwindSafe for Rendition
impl Send for Rendition
impl Sync for Rendition
impl Unpin for Rendition
impl UnsafeUnpin for Rendition
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
Mutably borrows from an owned value. Read more