[][src]Struct gstreamer_player::PlayerMediaInfo

pub struct PlayerMediaInfo(_, _);

Structure containing the media information of a URI.

Implements

glib::object::ObjectExt

Implementations

impl PlayerMediaInfo[src]

pub fn get_audio_streams(&self) -> Vec<PlayerAudioInfo>[src]

Returns

A glib::List of matching PlayerAudioInfo.

pub fn get_container_format(&self) -> Option<GString>[src]

Returns

the container format.

pub fn get_duration(&self) -> ClockTime[src]

Returns

duration of the media.

pub fn get_image_sample(&self) -> Option<Sample>[src]

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]

Returns

number of audio streams.

pub fn get_number_of_streams(&self) -> u32[src]

Returns

number of total streams.

pub fn get_number_of_subtitle_streams(&self) -> u32[src]

Returns

number of subtitle streams.

pub fn get_number_of_video_streams(&self) -> u32[src]

Returns

number of video streams.

pub fn get_stream_list(&self) -> Vec<PlayerStreamInfo>[src]

Returns

A glib::List of matching PlayerStreamInfo.

pub fn get_subtitle_streams(&self) -> Vec<PlayerSubtitleInfo>[src]

Returns

A glib::List of matching PlayerSubtitleInfo.

pub fn get_tags(&self) -> Option<TagList>[src]

Returns

the tags contained in media info.

pub fn get_title(&self) -> Option<GString>[src]

Returns

the media title.

pub fn get_uri(&self) -> GString[src]

Returns

the URI associated with PlayerMediaInfo.

pub fn get_video_streams(&self) -> Vec<PlayerVideoInfo>[src]

Returns

A glib::List of matching PlayerVideoInfo.

pub fn is_live(&self) -> bool[src]

Returns

true if the media is live.

pub fn is_seekable(&self) -> bool[src]

Returns

true if the media is seekable.

Trait Implementations

impl Clone for PlayerMediaInfo[src]

impl Debug for PlayerMediaInfo[src]

impl Eq for PlayerMediaInfo[src]

impl Hash for PlayerMediaInfo[src]

impl Ord for PlayerMediaInfo[src]

impl<T: ObjectType> PartialEq<T> for PlayerMediaInfo[src]

impl<T: ObjectType> PartialOrd<T> for PlayerMediaInfo[src]

impl Send for PlayerMediaInfo[src]

impl StaticType for PlayerMediaInfo[src]

impl Sync for PlayerMediaInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for PlayerMediaInfo

impl Unpin for PlayerMediaInfo

impl UnwindSafe for PlayerMediaInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.