[−]Struct gstreamer_player::PlayerMediaInfo
Methods
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
[+]
impl Debug for PlayerMediaInfo
[+]
impl Eq for PlayerMediaInfo
impl Hash for PlayerMediaInfo
[+]
impl Ord for PlayerMediaInfo
[+]
impl<T: ObjectType> PartialEq<T> for PlayerMediaInfo
[+]
impl<T: ObjectType> PartialOrd<T> for PlayerMediaInfo
[+]
impl Send for PlayerMediaInfo
[src]
impl StaticType for PlayerMediaInfo
[+]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> From<T> for T
[src][+]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,