Struct gstreamer_player::PlayerMediaInfo [−]
pub struct PlayerMediaInfo(_, _);
Methods
impl PlayerMediaInfo[src]
impl PlayerMediaInfopub fn get_audio_streams(&self) -> Vec<PlayerAudioInfo>[src]
pub fn get_audio_streams(&self) -> Vec<PlayerAudioInfo>Returns
A glib::List of
matching PlayerAudioInfo.
pub fn get_container_format(&self) -> Option<String>[src]
pub fn get_container_format(&self) -> Option<String>Returns
the container format.
pub fn get_duration(&self) -> ClockTime[src]
pub fn get_duration(&self) -> ClockTimeReturns
duration of the media.
pub fn get_image_sample(&self) -> Option<Sample>[src]
pub fn get_image_sample(&self) -> Option<Sample>Function to get the image (or preview-image) stored in taglist.
Application can use gst_sample_*_ API's to get caps, buffer etc.
Returns
GstSample or NULL.
pub fn get_number_of_audio_streams(&self) -> u32[src]
pub fn get_number_of_audio_streams(&self) -> u32Returns
number of audio streams.
pub fn get_number_of_streams(&self) -> u32[src]
pub fn get_number_of_streams(&self) -> u32Returns
number of total streams.
pub fn get_number_of_subtitle_streams(&self) -> u32[src]
pub fn get_number_of_subtitle_streams(&self) -> u32Returns
number of subtitle streams.
pub fn get_number_of_video_streams(&self) -> u32[src]
pub fn get_number_of_video_streams(&self) -> u32Returns
number of video streams.
pub fn get_stream_list(&self) -> Vec<PlayerStreamInfo>[src]
pub fn get_stream_list(&self) -> Vec<PlayerStreamInfo>Returns
A glib::List of
matching PlayerStreamInfo.
pub fn get_subtitle_streams(&self) -> Vec<PlayerSubtitleInfo>[src]
pub fn get_subtitle_streams(&self) -> Vec<PlayerSubtitleInfo>Returns
A glib::List of
matching PlayerSubtitleInfo.
Returns
the tags contained in media info.
pub fn get_title(&self) -> Option<String>[src]
pub fn get_title(&self) -> Option<String>Returns
the media title.
pub fn get_uri(&self) -> String[src]
pub fn get_uri(&self) -> StringReturns
the URI associated with PlayerMediaInfo.
pub fn get_video_streams(&self) -> Vec<PlayerVideoInfo>[src]
pub fn get_video_streams(&self) -> Vec<PlayerVideoInfo>Returns
A glib::List of
matching PlayerVideoInfo.
pub fn is_live(&self) -> bool[src]
pub fn is_live(&self) -> boolReturns
true if the media is live.
pub fn is_seekable(&self) -> bool[src]
pub fn is_seekable(&self) -> boolReturns
true if the media is seekable.
Trait Implementations
impl Clone for PlayerMediaInfo
impl Clone for PlayerMediaInfofn clone(&self) -> PlayerMediaInfo
fn clone(&self) -> PlayerMediaInfoReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Hash for PlayerMediaInfo
impl Hash for PlayerMediaInfofn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Ord for PlayerMediaInfo
impl Ord for PlayerMediaInfofn cmp(&self, other: &PlayerMediaInfo) -> Ordering
fn cmp(&self, other: &PlayerMediaInfo) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl StaticType for PlayerMediaInfo
impl StaticType for PlayerMediaInfofn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for PlayerMediaInfo
impl<T: IsA<Object>> PartialEq<T> for PlayerMediaInfofn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for PlayerMediaInfo
impl Eq for PlayerMediaInfoimpl<T: IsA<Object>> PartialOrd<T> for PlayerMediaInfo
impl<T: IsA<Object>> PartialOrd<T> for PlayerMediaInfofn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for PlayerMediaInfo
impl Debug for PlayerMediaInfoimpl IsA<Object> for PlayerMediaInfo
impl IsA<Object> for PlayerMediaInfoimpl Send for PlayerMediaInfo[src]
impl Send for PlayerMediaInfoimpl Sync for PlayerMediaInfo[src]
impl Sync for PlayerMediaInfo