[][src]Trait gstreamer_editing_services::UriClipAssetExt

pub trait UriClipAssetExt: 'static {
    fn get_duration(&self) -> ClockTime;
fn get_info(&self) -> Option<DiscovererInfo>;
fn get_max_duration(&self) -> ClockTime;
fn get_stream_assets(&self) -> Vec<UriSourceAsset>;
fn is_image(&self) -> bool;
fn set_property_duration(&self, duration: u64);
fn get_property_is_nested_timeline(&self) -> bool;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all UriClipAsset methods.

Implementors

UriClipAsset

Required methods

fn get_duration(&self) -> ClockTime

Gets duration of the file represented by self

Returns

The duration of self

fn get_info(&self) -> Option<DiscovererInfo>

Gets gst_pbutils::DiscovererInfo about the file

Returns

gst_pbutils::DiscovererInfo of specified asset

fn get_max_duration(&self) -> 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'.

Feature: v1_18

Returns

The maximum duration of self

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

Get the GESUriSourceAsset self containes

Returns

a glib::List of UriSourceAsset

fn is_image(&self) -> bool

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

Feature: v1_18

Returns

Whether the file represented by self is an image or not

fn set_property_duration(&self, duration: u64)

The duration (in nanoseconds) of the media file

fn get_property_is_nested_timeline(&self) -> bool

The duration (in nanoseconds) of the media file

Feature: v1_18

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

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

Loading content...

Implementors

impl<O: IsA<UriClipAsset>> UriClipAssetExt for O[src]

Loading content...