pub trait MediaStreamExt: 'static {
Show 45 methods // Required methods fn ended(&self); fn duration(&self) -> i64; fn is_ended(&self) -> bool; fn error(&self) -> Option<Error>; fn is_loop(&self) -> bool; fn is_muted(&self) -> bool; fn is_playing(&self) -> bool; fn timestamp(&self) -> i64; fn volume(&self) -> f64; fn has_audio(&self) -> bool; fn has_video(&self) -> bool; fn is_prepared(&self) -> bool; fn is_seekable(&self) -> bool; fn is_seeking(&self) -> bool; fn pause(&self); fn play(&self); fn prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 ); fn realize(&self, surface: &impl IsA<Surface>); fn seek(&self, timestamp: i64); fn seek_failed(&self); fn seek_success(&self); fn set_loop(&self, loop_: bool); fn set_muted(&self, muted: bool); fn set_playing(&self, playing: bool); fn set_volume(&self, volume: f64); fn stream_ended(&self); fn stream_prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 ); fn stream_unprepared(&self); fn unprepared(&self); fn unrealize(&self, surface: &impl IsA<Surface>); fn update(&self, timestamp: i64); fn set_prepared(&self, prepared: bool); fn connect_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_ended_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_error_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_has_audio_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_has_video_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_loop_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_muted_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_playing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_prepared_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_seekable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_seeking_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_timestamp_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_volume_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn ended(&self)

source

fn duration(&self) -> i64

source

fn is_ended(&self) -> bool

source

fn error(&self) -> Option<Error>

source

fn is_loop(&self) -> bool

source

fn is_muted(&self) -> bool

source

fn is_playing(&self) -> bool

source

fn timestamp(&self) -> i64

source

fn volume(&self) -> f64

source

fn has_audio(&self) -> bool

source

fn has_video(&self) -> bool

source

fn is_prepared(&self) -> bool

source

fn is_seekable(&self) -> bool

source

fn is_seeking(&self) -> bool

source

fn pause(&self)

source

fn play(&self)

source

fn prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 )

source

fn realize(&self, surface: &impl IsA<Surface>)

source

fn seek(&self, timestamp: i64)

source

fn seek_failed(&self)

source

fn seek_success(&self)

source

fn set_loop(&self, loop_: bool)

source

fn set_muted(&self, muted: bool)

source

fn set_playing(&self, playing: bool)

source

fn set_volume(&self, volume: f64)

source

fn stream_ended(&self)

Available on crate feature v4_4 only.
source

fn stream_prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 )

Available on crate feature v4_4 only.
source

fn stream_unprepared(&self)

Available on crate feature v4_4 only.
source

fn unprepared(&self)

source

fn unrealize(&self, surface: &impl IsA<Surface>)

source

fn update(&self, timestamp: i64)

source

fn set_prepared(&self, prepared: bool)

source

fn connect_duration_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_ended_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_error_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_has_audio_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_has_video_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_loop_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_muted_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_playing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_prepared_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_seekable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_seeking_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_timestamp_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_volume_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Implementors§