pub struct Player { /* private fields */ }Implementations§
Source§impl Player
impl Player
pub fn paintable(&self) -> Paintable
pub fn update_render_rectangle( &self, src_rect: &VideoRectangle, new_rect: VideoRectangle, )
pub fn set_uri(&self, uri: &str)
pub fn play(&self)
pub fn pause(&self)
pub fn stop(&self)
pub fn seek(&self, to: &f64)
pub fn set_volume(&self, vol: f64)
pub fn set_audio_track(&self, track: Track) -> Result<()>
pub fn speed(&self) -> f64
pub fn set_speed(&self, speed: f64)
pub fn next_frame(&self)
pub fn set_audio_video_offset(&self, offset: i64)
pub fn set_subtitle_video_offset(&self, offset: i64)
pub fn dump_pipeline(&self, label: &str)
pub fn set_qos(&self, qos: bool)
pub fn set_max_lateness(&self, max_lateness: &MaxLateness)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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