pub struct VideoTrack {
pub stats: Arc<VideoStats>,
/* private fields */
}Fields§
§stats: Arc<VideoStats>Implementations§
Source§impl VideoTrack
impl VideoTrack
pub fn start( conn: Connection, hooks: Hooks, platform: Arc<dyn CallPlatform>, ) -> Self
Sourcepub fn set_sending(&self, tracks: Tracks)
pub fn set_sending(&self, tracks: Tracks)
What we send from now on. A track that turns on gets a fresh ladder on a rung the path allows (and the user’s pin, if any), and the webview hears its size and rate before any frame; a sibling’s ceiling moves when the pair changes.
Sourcepub fn set_prefs(&self, kind: VideoKind, prefs: Prefs)
pub fn set_prefs(&self, kind: VideoKind, prefs: Prefs)
The user’s choice for a track, kept for the next time it turns on too.
Sourcepub fn set_codec(&self, codec: VideoCodec)
pub fn set_codec(&self, codec: VideoCodec)
The codec the peer decodes; told to the webview whenever it connects.
pub fn set_peer(&self, tracks: Tracks)
Sourcepub fn set_paused(&self, on: bool)
pub fn set_paused(&self, on: bool)
The peer cannot see us (or can again).
Sourcepub fn force_keyframe(&self, kind: VideoKind)
pub fn force_keyframe(&self, kind: VideoKind)
The peer asked for a keyframe on that track. Honoured once a second: a peer asking at wire rate would otherwise turn every frame into a keyframe.
Sourcepub fn snapshot(&self) -> VideoSnapshot
pub fn snapshot(&self) -> VideoSnapshot
The panel’s view of each track’s ladder.
Trait Implementations§
Source§impl Drop for VideoTrack
impl Drop for VideoTrack
Auto Trait Implementations§
impl !RefUnwindSafe for VideoTrack
impl !UnwindSafe for VideoTrack
impl Forget for VideoTrack
impl Freeze for VideoTrack
impl Move for VideoTrack
impl Send for VideoTrack
impl Sync for VideoTrack
impl Unpin for VideoTrack
impl UnsafeUnpin for VideoTrack
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
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> ⓘ
Converts
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> ⓘ
Converts
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