gstreamer_editing_services::prelude

Trait UriSourceAssetExt

Source
pub trait UriSourceAssetExt: IsA<UriSourceAsset> + 'static {
    // Provided methods
    fn filesource_asset(&self) -> UriClipAsset { ... }
    fn stream_info(&self) -> DiscovererStreamInfo { ... }
    fn stream_uri(&self) -> GString { ... }
    fn is_image(&self) -> bool { ... }
}
Expand description

Trait containing all UriSourceAsset methods.

§Implementors

UriSourceAsset

Provided Methods§

Source

fn filesource_asset(&self) -> UriClipAsset

Get the UriClipAsset self_ is contained in

§Returns

a UriClipAsset

Source

fn stream_info(&self) -> DiscovererStreamInfo

Get the gst_pbutils::DiscovererStreamInfo user by self

§Returns

a UriClipAsset

Source

fn stream_uri(&self) -> GString

Source

fn is_image(&self) -> bool

Check if self contains a single image

§Returns

true if the video stream corresponds to an image (i.e. only contains one frame)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§