#[non_exhaustive]pub struct LocalFrame {
pub codec: VideoCodec,
pub data: Bytes,
pub keyframe: bool,
pub capture_us: u64,
pub width: u32,
pub height: u32,
pub facing: Facing,
}Expand description
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
One encoded plaintext frame of this device’s own camera or screen (self-view).
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.codec: VideoCodecThe codec.
data: BytesA raw VP8 frame, or one H.264 Annex B access unit with 4-byte start codes.
keyframe: boolA keyframe.
capture_us: u64The capture time (kessel-video’s clock, µs).
width: u32The coded width.
height: u32The coded height.
facing: FacingWhich way the camera that captured it faces (a host mirrors a front camera’s
self-view frame by frame: a switch lands on the new camera’s first frame); Unknown
for a screen.
Trait Implementations§
Source§impl Clone for LocalFrame
impl Clone for LocalFrame
Source§impl Debug for LocalFrame
impl Debug for LocalFrame
impl Eq for LocalFrame
Source§impl PartialEq for LocalFrame
impl PartialEq for LocalFrame
impl StructuralPartialEq for LocalFrame
Auto Trait Implementations§
impl !Freeze for LocalFrame
impl Forget for LocalFrame
impl Move for LocalFrame
impl RefUnwindSafe for LocalFrame
impl Send for LocalFrame
impl Sync for LocalFrame
impl Unpin for LocalFrame
impl UnsafeUnpin for LocalFrame
impl UnwindSafe for LocalFrame
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