gi-ges-1.0.1: libges bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GES.Objects.UriClipAsset

Description

No description available in the introspection data.

Synopsis

Exported types

newtype UriClipAsset Source #

Memory-managed wrapper type.

Constructors

UriClipAsset (ManagedPtr UriClipAsset) 

Instances

Instances details
Eq UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

GObject UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

ManagedPtrNewtype UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

Methods

toManagedPtr :: UriClipAsset -> ManagedPtr UriClipAsset

TypedObject UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

Methods

glibType :: IO GType

HasParentTypes UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

IsGValue (Maybe UriClipAsset) Source #

Convert UriClipAsset to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GES.Objects.UriClipAsset

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe UriClipAsset -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe UriClipAsset)

type ParentTypes UriClipAsset Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

type ParentTypes UriClipAsset = '[SourceClipAsset, ClipAsset, Asset, Object, MetaContainer, AsyncInitable, Initable]

class (GObject o, IsDescendantOf UriClipAsset o) => IsUriClipAsset o Source #

Type class for types which can be safely cast to UriClipAsset, for instance with toUriClipAsset.

Instances

Instances details
(GObject o, IsDescendantOf UriClipAsset o) => IsUriClipAsset o Source # 
Instance details

Defined in GI.GES.Objects.UriClipAsset

toUriClipAsset :: (MonadIO m, IsUriClipAsset o) => o -> m UriClipAsset Source #

Cast to UriClipAsset, for types for which this is known to be safe. For general casts, use castTo.

Methods

finish

uriClipAssetFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsAsyncResult a) 
=> a

res: The AsyncResult from which to get the newly created UriClipAsset

-> m UriClipAsset

Returns: The UriClipAsset previously requested (Can throw GError)

Finalize the request of an async UriClipAsset

Since: 1.16

getDuration

uriClipAssetGetDuration Source #

Arguments

:: (HasCallStack, MonadIO m, IsUriClipAsset a) 
=> a

self: a UriClipAsset

-> m Word64

Returns: The duration of self

Gets duration of the file represented by self

getInfo

uriClipAssetGetInfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsUriClipAsset a) 
=> a

self: Target asset

-> m DiscovererInfo

Returns: DiscovererInfo of specified asset

Gets DiscovererInfo about the file

getMaxDuration

uriClipAssetGetMaxDuration Source #

Arguments

:: (HasCallStack, MonadIO m, IsUriClipAsset a) 
=> a

self: a UriClipAsset

-> m Word64

Returns: The maximum duration of self

Gets maximum duration of the file represented by self, it is usually the same as GESUriClipAsset[duration](#g:signal:duration), but in the case of nested timelines, for example, they are different as those can be extended 'infinitely'.

Since: 1.18

getStreamAssets

uriClipAssetGetStreamAssets Source #

Arguments

:: (HasCallStack, MonadIO m, IsUriClipAsset a) 
=> a

self: A UriClipAsset

-> m [UriSourceAsset]

Returns: a List of UriSourceAsset

Get the GESUriSourceAsset self containes

isImage

uriClipAssetIsImage Source #

Arguments

:: (HasCallStack, MonadIO m, IsUriClipAsset a) 
=> a

self: a UriClipAsset

-> m Bool

Returns: Whether the file represented by self is an image or not

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

Since: 1.18

new

uriClipAssetNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Text

uri: The URI of the file for which to create a UriClipAsset

-> Maybe a

cancellable: optional GCancellable object, Nothing to ignore.

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the initialization is finished

-> m () 

Creates a UriClipAsset for uri

Example of request of a GESUriClipAsset: > >// The request callback >static void >filesource_asset_loaded_cb (GESAsset * source, GAsyncResult * res, gpointer user_data) >{ > GError *error = NULL; > GESUriClipAsset *filesource_asset; > > filesource_asset = ges_uri_clip_asset_finish (res, &error); > if (filesource_asset) { > gst_print ("The file: %s is usable as a FileSource, it is%s an image and lasts %" GST_TIME_FORMAT, > ges_asset_get_id (GES_ASSET (filesource_asset)) > ges_uri_clip_asset_is_image (filesource_asset) ? "" : " not", > GST_TIME_ARGS (ges_uri_clip_asset_get_duration (filesource_asset)); > } else { > gst_print ("The file: %s is *not* usable as a FileSource because: %s", > ges_asset_get_id (source), error->message); > } > > gst_object_unref (mfs); >} > >// The request: >ges_uri_clip_asset_new (uri, (GAsyncReadyCallback) filesource_asset_loaded_cb, user_data);

requestSync

uriClipAssetRequestSync Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

uri: The URI of the file for which to create a UriClipAsset. You can also use multi file uris for MultiFileSource.

-> m UriClipAsset

Returns: A reference to the requested asset or Nothing if an error happened (Can throw GError)

Creates a UriClipAsset for uri syncronously. You should avoid to use it in application, and rather create UriClipAsset asynchronously

Properties

duration

The duration (in nanoseconds) of the media file

constructUriClipAssetDuration :: (IsUriClipAsset o, MonadIO m) => Word64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “duration” property. This is rarely needed directly, but it is used by new.

getUriClipAssetDuration :: (MonadIO m, IsUriClipAsset o) => o -> m Word64 Source #

Get the value of the “duration” property. When overloading is enabled, this is equivalent to

get uriClipAsset #duration

setUriClipAssetDuration :: (MonadIO m, IsUriClipAsset o) => o -> Word64 -> m () Source #

Set the value of the “duration” property. When overloading is enabled, this is equivalent to

set uriClipAsset [ #duration := value ]

isNestedTimeline

The duration (in nanoseconds) of the media file

Since: 1.18

getUriClipAssetIsNestedTimeline :: (MonadIO m, IsUriClipAsset o) => o -> m Bool Source #

Get the value of the “is-nested-timeline” property. When overloading is enabled, this is equivalent to

get uriClipAsset #isNestedTimeline