#[non_exhaustive]pub enum CaptureEvent {
Started {
width: u32,
height: u32,
fps: u32,
},
Paused(CapturePause),
Resumed,
Ended(CaptureEnd),
Error(VideoError),
}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.
A source’s events, in order, in Sew’s vocabulary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Started
The first frame, and after any change of the delivered size or rate.
Paused(CapturePause)
Paused by the OS: no frames until CaptureEvent::Resumed.
Resumed
Back after a pause (the encoders’ next frame should be a keyframe).
Ended(CaptureEnd)
Terminal: no more frames.
Error(VideoError)
A non-terminal problem.
Trait Implementations§
Source§impl Clone for CaptureEvent
impl Clone for CaptureEvent
Source§impl Debug for CaptureEvent
impl Debug for CaptureEvent
impl Eq for CaptureEvent
Source§impl PartialEq for CaptureEvent
impl PartialEq for CaptureEvent
impl StructuralPartialEq for CaptureEvent
Auto Trait Implementations§
impl Forget for CaptureEvent
impl Freeze for CaptureEvent
impl Move for CaptureEvent
impl RefUnwindSafe for CaptureEvent
impl Send for CaptureEvent
impl Sync for CaptureEvent
impl Unpin for CaptureEvent
impl UnsafeUnpin for CaptureEvent
impl UnwindSafe for CaptureEvent
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