Trait MediaStreamExt

Source
pub trait MediaStreamExt:
    IsA<MediaStream>
    + Sealed
    + 'static {
Show 45 methods // Provided 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 { ... }
}

Provided Methodsยง

Source

fn ended(&self)

๐Ÿ‘ŽDeprecated: Since 4.4
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, )

๐Ÿ‘ŽDeprecated: Since 4.4
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)

๐Ÿ‘ŽDeprecated: Since 4.4
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

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง