pub trait UriClipAssetExt: IsA<UriClipAsset> + Sealed + 'static {
    // Provided methods
    fn duration(&self) -> Option<ClockTime> { ... }
    fn info(&self) -> DiscovererInfo { ... }
    fn max_duration(&self) -> Option<ClockTime> { ... }
    fn stream_assets(&self) -> Vec<UriSourceAsset> { ... }
    fn is_image(&self) -> bool { ... }
    fn set_duration(&self, duration: u64) { ... }
    fn is_nested_timeline(&self) -> bool { ... }
    fn connect_duration_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_is_nested_timeline_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all UriClipAsset methods.

§Implementors

UriClipAsset

Provided Methods§

source

fn duration(&self) -> Option<ClockTime>

Gets duration of the file represented by self

§Returns

The duration of self

source

fn info(&self) -> DiscovererInfo

Gets gst_pbutils::DiscovererInfo about the file

§Returns

gst_pbutils::DiscovererInfo of specified asset

source

fn max_duration(&self) -> Option<ClockTime>

Gets maximum duration of the file represented by self, it is usually the same as GESUriClipAsset::duration, but in the case of nested timelines, for example, they are different as those can be extended ‘infinitely’.

§Returns

The maximum duration of self

source

fn stream_assets(&self) -> Vec<UriSourceAsset>

Get the GESUriSourceAsset self containes

§Returns

a GList of UriSourceAsset

source

fn is_image(&self) -> bool

Gets Whether the file represented by self is an image or not

§Returns

Whether the file represented by self is an image or not

source

fn set_duration(&self, duration: u64)

The duration (in nanoseconds) of the media file

source

fn is_nested_timeline(&self) -> bool

The duration (in nanoseconds) of the media file

source

fn connect_duration_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_is_nested_timeline_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§