Trait gtk4::prelude::MediaStreamExt
source · 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§
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)
sourcefn prepared(
&self,
has_audio: bool,
has_video: bool,
seekable: bool,
duration: i64
)
fn prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 )
👎Deprecated: Since 4.4
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)
sourcefn stream_ended(&self)
fn stream_ended(&self)
Available on crate feature
v4_4
only.sourcefn stream_prepared(
&self,
has_audio: bool,
has_video: bool,
seekable: bool,
duration: i64
)
fn stream_prepared( &self, has_audio: bool, has_video: bool, seekable: bool, duration: i64 )
Available on crate feature
v4_4
only.sourcefn stream_unprepared(&self)
fn stream_unprepared(&self)
Available on crate feature
v4_4
only.sourcefn unprepared(&self)
fn unprepared(&self)
👎Deprecated: Since 4.4