[]Struct gstreamer_pbutils::DiscovererInfo

pub struct DiscovererInfo(_, _);

Structure containing the information of a URI analyzed by Discoverer.

Implements

glib::object::ObjectExt

Methods

impl DiscovererInfo[src]

pub fn copy(&self) -> DiscovererInfo[src]

Returns

A copy of the DiscovererInfo

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

Finds all the DiscovererAudioInfo contained in self

Returns

A glib::List of matching DiscovererStreamInfo. The caller should free it with DiscovererStreamInfo::list_free.

pub fn get_container_streams(&self) -> Vec<DiscovererStreamInfo>[src]

Finds all the DiscovererContainerInfo contained in self

Returns

A glib::List of matching DiscovererStreamInfo. The caller should free it with DiscovererStreamInfo::list_free.

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

Returns

the duration of the URI in gst::ClockTime (nanoseconds).

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

Feature: v1_14

Returns

whether the URI is live.

pub fn get_misc(&self) -> Option<Structure>[src]

Deprecated

This functions is deprecated since version 1.4, use DiscovererInfo::get_missing_elements_installer_details

Returns

Miscellaneous information stored as a gst::Structure (for example: information about missing plugins). If you wish to use the gst::Structure after the life-time of self, you will need to copy it.

pub fn get_missing_elements_installer_details(&self) -> Vec<GString>[src]

Get the installer details for missing elements

Returns

An array of strings containing informations about how to install the various missing elements for self to be usable. If you wish to use the strings after the life-time of self, you will need to copy them.

pub fn get_result(&self) -> DiscovererResult[src]

Returns

the result of the discovery as a DiscovererResult.

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

Returns

the whether the URI is seekable.

pub fn get_stream_info(&self) -> Option<DiscovererStreamInfo>[src]

Returns

the structure (or topology) of the URI as a DiscovererStreamInfo. This structure can be traversed to see the original hierarchy. Unref with gst_discoverer_stream_info_unref after usage.

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

Returns

the list of all streams contained in the info. Free after usage with DiscovererStreamInfo::list_free.

pub fn get_streams(&self, streamtype: Type) -> Vec<DiscovererStreamInfo>[src]

Finds the DiscovererStreamInfo contained in self that match the given streamtype.

streamtype

a glib::Type derived from DiscovererStreamInfo

Returns

A glib::List of matching DiscovererStreamInfo. The caller should free it with DiscovererStreamInfo::list_free.

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

Finds all the DiscovererSubtitleInfo contained in self

Returns

A glib::List of matching DiscovererStreamInfo. The caller should free it with DiscovererStreamInfo::list_free.

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

Returns

all tags contained in the URI. If you wish to use the tags after the life-time of self, you will need to copy them.

pub fn get_toc(&self) -> Option<Toc>[src]

Returns

TOC contained in the URI. If you wish to use the TOC after the life-time of self, you will need to copy it.

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

Returns

the URI to which this information corresponds to. Copy it if you wish to use it after the life-time of self.

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

Finds all the DiscovererVideoInfo contained in self

Returns

A glib::List of matching DiscovererStreamInfo. The caller should free it with DiscovererStreamInfo::list_free.

pub fn to_variant(
    &self,
    flags: DiscovererSerializeFlags
) -> Result<Variant, BoolError>
[src]

Serializes self to a glib::Variant that can be parsed again through DiscovererInfo::from_variant.

Note that any gst::Toc (s) that might have been discovered will not be serialized for now.

flags

A combination of DiscovererSerializeFlags to specify what needs to be serialized.

Returns

A newly-allocated glib::Variant representing self.

pub fn from_variant(variant: &Variant) -> Result<DiscovererInfo, BoolError>[src]

Parses a glib::Variant as produced by DiscovererInfo::to_variant back to a DiscovererInfo.

variant

A glib::Variant to deserialize into a DiscovererInfo.

Returns

A newly-allocated DiscovererInfo.

Trait Implementations

impl Clone for DiscovererInfo

impl Debug for DiscovererInfo

impl Eq for DiscovererInfo

impl Hash for DiscovererInfo

impl Ord for DiscovererInfo

impl<T: ObjectType> PartialEq<T> for DiscovererInfo

impl<T: ObjectType> PartialOrd<T> for DiscovererInfo

impl Send for DiscovererInfo[src]

impl StaticType for DiscovererInfo

impl Sync for DiscovererInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for DiscovererInfo

impl Unpin for DiscovererInfo

impl UnwindSafe for DiscovererInfo

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.