[−][src]Trait gstreamer_editing_services::AssetExt
Required methods
fn extract(&self) -> Result<Option<Extractable>, Error>
[−]
Extracts a new gobject::Object
from asset
. The type of the object is
defined by the extractable-type of asset
, you can check what
type will be extracted from asset
using
AssetExt::get_extractable_type
Returns
A newly created Extractable
fn get_error(&self) -> Option<Error>
[−]
Returns
The glib::Error
of the asset or None
if
the asset was loaded without issue
fn get_extractable_type(&self) -> Type
[−]
Gets the type of object that can be extracted from self
Returns
the type of object that can be extracted from self
fn get_id(&self) -> Option<GString>
[−]
fn get_proxy(&self) -> Option<Asset>
[−]
Returns
The proxy in use for self
fn get_proxy_target(&self) -> Option<Asset>
[−]
Returns
The Asset
that is proxied by self
fn list_proxies(&self) -> Vec<Asset>
[−]
Returns
The list of proxies self
has. Note that the default asset to be
used is always the first in that list.
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), BoolError>
[−]
A proxying asset is an asset that can substitue the real self
. For example if you
have a full HD UriClipAsset
you might want to set a lower resolution (HD version
of the same file) as proxy. Note that when an asset is proxied, calling
Asset::request
will actually return the proxy asset.
proxy
The Asset
that should be used as default proxy for self
or
None
if you want to use the currently set proxy. Note that an asset can proxy one and only
one other asset.
Returns
true
if proxy
has been set on self
, false
otherwise.
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), BoolError>
[−]
Removes proxy
from the list of known proxies for self
.
If proxy
was the current proxy for self
, stop using it.
proxy
The Asset
to stop considering as a proxy for self
Returns
true
if proxy
was a known proxy for self
, false
otherwise.
fn set_property_proxy_target<P: IsA<Asset> + SetValueOptional>(
&self,
proxy_target: Option<&P>
)
&self,
proxy_target: Option<&P>
)
fn connect_property_proxy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_proxy_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Asset>> AssetExt for O
[src][−]
fn extract(&self) -> Result<Option<Extractable>, Error>
[src]
fn get_error(&self) -> Option<Error>
[src]
fn get_extractable_type(&self) -> Type
[src]
fn get_id(&self) -> Option<GString>
[src]
fn get_proxy(&self) -> Option<Asset>
[src]
fn get_proxy_target(&self) -> Option<Asset>
[src]
fn list_proxies(&self) -> Vec<Asset>
[src]
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), BoolError>
[src]
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), BoolError>
[src]
fn set_property_proxy_target<P: IsA<Asset> + SetValueOptional>(
&self,
proxy_target: Option<&P>
)
[src]
&self,
proxy_target: Option<&P>
)
fn connect_property_proxy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_proxy_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId