Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype UriClipAsset = UriClipAsset (ManagedPtr UriClipAsset)
- class (GObject o, IsDescendantOf UriClipAsset o) => IsUriClipAsset o
- toUriClipAsset :: (MonadIO m, IsUriClipAsset o) => o -> m UriClipAsset
- uriClipAssetFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m UriClipAsset
- uriClipAssetGetDuration :: (HasCallStack, MonadIO m, IsUriClipAsset a) => a -> m Word64
- uriClipAssetGetInfo :: (HasCallStack, MonadIO m, IsUriClipAsset a) => a -> m DiscovererInfo
- uriClipAssetGetMaxDuration :: (HasCallStack, MonadIO m, IsUriClipAsset a) => a -> m Word64
- uriClipAssetGetStreamAssets :: (HasCallStack, MonadIO m, IsUriClipAsset a) => a -> m [UriSourceAsset]
- uriClipAssetIsImage :: (HasCallStack, MonadIO m, IsUriClipAsset a) => a -> m Bool
- uriClipAssetNew :: (HasCallStack, MonadIO m, IsCancellable a) => Text -> Maybe a -> Maybe AsyncReadyCallback -> m ()
- uriClipAssetRequestSync :: (HasCallStack, MonadIO m) => Text -> m UriClipAsset
- constructUriClipAssetDuration :: (IsUriClipAsset o, MonadIO m) => Word64 -> m (GValueConstruct o)
- getUriClipAssetDuration :: (MonadIO m, IsUriClipAsset o) => o -> m Word64
- setUriClipAssetDuration :: (MonadIO m, IsUriClipAsset o) => o -> Word64 -> m ()
- getUriClipAssetIsNestedTimeline :: (MonadIO m, IsUriClipAsset o) => o -> m Bool
Exported types
newtype UriClipAsset Source #
Memory-managed wrapper type.
UriClipAsset (ManagedPtr UriClipAsset) |
Instances
Eq UriClipAsset Source # | |
Defined in GI.GES.Objects.UriClipAsset (==) :: UriClipAsset -> UriClipAsset -> Bool # (/=) :: UriClipAsset -> UriClipAsset -> Bool # | |
GObject UriClipAsset Source # | |
Defined in GI.GES.Objects.UriClipAsset | |
ManagedPtrNewtype UriClipAsset Source # | |
Defined in GI.GES.Objects.UriClipAsset toManagedPtr :: UriClipAsset -> ManagedPtr UriClipAsset | |
TypedObject UriClipAsset Source # | |
Defined in GI.GES.Objects.UriClipAsset | |
HasParentTypes UriClipAsset Source # | |
Defined in GI.GES.Objects.UriClipAsset | |
IsGValue (Maybe UriClipAsset) Source # | Convert |
Defined in GI.GES.Objects.UriClipAsset gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe UriClipAsset -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe UriClipAsset) | |
type ParentTypes UriClipAsset Source # | |
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
(GObject o, IsDescendantOf UriClipAsset o) => IsUriClipAsset o Source # | |
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
Click to display all available methods, including inherited ones
Methods
addMetasFromString, bindProperty, bindPropertyFull, checkMetaRegistered, extract, forceFloating, foreach, freezeNotify, getv, init, initAsync, initFinish, isFloating, isImage, listProxies, metasToString, newFinish, notify, notifyByPspec, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, runDispose, stealData, stealQdata, thawNotify, unproxy, unref, watchClosure.
Getters
getBoolean, getData, getDate, getDateTime, getDouble, getDuration, getError, getExtractableType, getFloat, getFrameTime, getId, getInfo, getInt, getInt64, getMarkerList, getMaxDuration, getMeta, getNaturalFramerate, getProperty, getProxy, getProxyTarget, getQdata, getStreamAssets, getString, getSupportedFormats, getUint, getUint64.
Setters
setBoolean, setData, setDataFull, setDate, setDateTime, setDouble, setFloat, setInt, setInt64, setMarkerList, setMeta, setProperty, setProxy, setString, setSupportedFormats, setUint, setUint64.
finish
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m UriClipAsset | Returns: The |
Finalize the request of an async UriClipAsset
Since: 1.16
getDuration
uriClipAssetGetDuration Source #
:: (HasCallStack, MonadIO m, IsUriClipAsset a) | |
=> a |
|
-> m Word64 | Returns: The duration of |
Gets duration of the file represented by self
getInfo
:: (HasCallStack, MonadIO m, IsUriClipAsset a) | |
=> a |
|
-> m DiscovererInfo | Returns: |
Gets DiscovererInfo
about the file
getMaxDuration
uriClipAssetGetMaxDuration Source #
:: (HasCallStack, MonadIO m, IsUriClipAsset a) | |
=> a |
|
-> m Word64 | Returns: The maximum duration of |
Gets maximum duration of the file represented by self
,
it is usually the same as GESUriClipAssetduration,
but in the case of nested timelines, for example, they
are different as those can be extended 'infinitely'.
Since: 1.18
getStreamAssets
uriClipAssetGetStreamAssets Source #
:: (HasCallStack, MonadIO m, IsUriClipAsset a) | |
=> a |
|
-> m [UriSourceAsset] | Returns: a
|
Get the GESUriSourceAsset self
containes
isImage
:: (HasCallStack, MonadIO m, IsUriClipAsset a) | |
=> a |
|
-> m Bool | Returns: Whether the file represented by |
Gets Whether the file represented by self
is an image or not
Since: 1.18
new
:: (HasCallStack, MonadIO m, IsCancellable a) | |
=> Text |
|
-> Maybe a |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m UriClipAsset | Returns: A reference to the requested asset or |
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