| GStreamer Editing Services 0.10.0.2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
GESTimelineFileSourceGESTimelineFileSource — An object for manipulating media files in a GESTimeline |
#include <ges/ges.h>
GESTimelineFileSource;
GESTimelineFileSource* ges_timeline_filesource_new (gchar *uri);
guint64 ges_timeline_filesource_get_max_duration
(GESTimelineFileSource *self);
GESTrackType ges_timeline_filesource_get_supported_formats
(GESTimelineFileSource *self);
const gchar * ges_timeline_filesource_get_uri (GESTimelineFileSource *self);
gboolean ges_timeline_filesource_is_image (GESTimelineFileSource *self);
gboolean ges_timeline_filesource_is_muted (GESTimelineFileSource *self);
void ges_timeline_filesource_set_is_image
(GESTimelineFileSource *self,
gboolean is_image);
void ges_timeline_filesource_set_max_duration
(GESTimelineFileSource *self,
guint64 maxduration);
void ges_timeline_filesource_set_mute (GESTimelineFileSource *self,
gboolean mute);
void ges_timeline_filesource_set_supported_formats
(GESTimelineFileSource *self,
GESTrackType supportedformats);
GObject +----GInitiallyUnowned +----GESTimelineObject +----GESTimelineSource +----GESTimelineFileSource
"is-image" gboolean : Read / Write / Construct "max-duration" guint64 : Read / Write / Construct "mute" gboolean : Read / Write / Construct "supported-formats" GESTrackType : Read / Write / Construct "uri" gchar* : Read / Write / Construct Only
Represents all the output treams from a particular uri. It is assumed that the URI points to a file of some type.
GESTimelineFileSource* ges_timeline_filesource_new (gchar *uri);
Creates a new GESTimelineFileSource for the provided uri.
|
the URI the source should control |
Returns : |
The newly created GESTimelineFileSource, or NULL if there was an error. |
guint64 ges_timeline_filesource_get_max_duration
(GESTimelineFileSource *self);
Get the duration of the object.
|
the GESTimelineFileSource |
Returns : |
The duration of self.
|
GESTrackType ges_timeline_filesource_get_supported_formats
(GESTimelineFileSource *self);
Get the formats supported by self.
|
the GESTimelineFileSource |
Returns : |
The formats supported by self.
|
const gchar * ges_timeline_filesource_get_uri (GESTimelineFileSource *self);
Get the location of the ressource.
|
the GESTimelineFileSource |
Returns : |
The location of the ressource. |
gboolean ges_timeline_filesource_is_image (GESTimelineFileSource *self);
Lets you know if self is an image or not.
|
the GESTimelineFileSource |
Returns : |
TRUE if self is a still image FALSE otherwize.
|
gboolean ges_timeline_filesource_is_muted (GESTimelineFileSource *self);
Lets you know if the audio track of self is muted or not.
|
the GESTimelineFileSource |
Returns : |
TRUE if the audio track of self is muted, FALSE otherwize.
|
void ges_timeline_filesource_set_is_image (GESTimelineFileSource *self,gboolean is_image);
Sets whether the timeline object is a still image or not.
|
the GESTimelineFileSource |
|
TRUE if self is a still image, FALSE otherwize
|
void ges_timeline_filesource_set_max_duration (GESTimelineFileSource *self,guint64 maxduration);
Sets the maximum duration (in nanoseconds) of the file.
|
the GESTimelineFileSource to set the maximum duration on |
|
the maximum duration of self
|
void ges_timeline_filesource_set_mute (GESTimelineFileSource *self,gboolean mute);
Sets whether the audio track of this timeline object is muted or not.
|
the GESTimelineFileSource on which to mute or unmute the audio track |
|
TRUE to mute self audio track, FALSE to unmute it
|
void ges_timeline_filesource_set_supported_formats (GESTimelineFileSource *self,GESTrackType supportedformats);
Sets the formats supported by the file.
|
the GESTimelineFileSource to set supported formats on |
|
the GESTrackType defining formats supported by self
|
"is-image" property"is-image" gboolean : Read / Write / Construct
Whether this filesource represents a still image or not. This must be set before create_track_objects is called.
Default value: FALSE
"max-duration" property"max-duration" guint64 : Read / Write / Construct
The maximum duration (in nanoseconds) of the file.
If not set before adding the object to a layer, it will be discovered asynchronously. Connect to 'notify::max-duration' to be notified of it.
Default value: 18446744073709551615
"mute" property"mute" gboolean : Read / Write / Construct
Whether the sound will be played or not.
Default value: FALSE
"supported-formats" property"supported-formats" GESTrackType : Read / Write / Construct
Whether the sound will be played or not.
Default value: GES_TRACK_TYPE_UNKNOWN
"uri" property"uri" gchar* : Read / Write / Construct Only
The location of the file/resource to use.
Default value: NULL