GESTimeline: GStreamer Editing Services 1.9.1 Reference Manual

## GESTimeline GESTimeline |

## Functions

GESTimeline * | ges_timeline_new ()
GESTimeline * | ges_timeline_new_audio_video ()
GESTimeline * | ges_timeline_new_from_uri ()
gboolean | ges_timeline_add_layer ()
GESLayer * | ges_timeline_append_layer ()
gboolean | ges_timeline_remove_layer ()
gboolean | ges_timeline_add_track ()
gboolean | ges_timeline_remove_track ()
gboolean | ges_timeline_load_from_uri ()
gboolean | ges_timeline_save_to_uri ()
gboolean | ges_timeline_commit ()
gboolean | ges_timeline_commit_sync ()
GList * | ges_timeline_get_tracks ()
GESLayer * | ges_timeline_get_layer ()
GList * | ges_timeline_get_layers ()
GESTrack * | ges_timeline_get_track_for_pad ()
GstPad * | ges_timeline_get_pad_for_track ()
GstClockTime | ges_timeline_get_duration ()
#define | ges_timeline_get_project()
gboolean | ges_timeline_get_auto_transition ()
void | ges_timeline_set_auto_transition ()
GstClockTime | ges_timeline_get_snapping_distance ()
void | ges_timeline_set_snapping_distance ()
GESTimelineElement * | ges_timeline_get_element ()
gboolean | ges_timeline_is_empty ()

## Properties

gboolean | auto-transition | Read / Write
guint64 | duration | Read
guint64 | snapping-distance | Read / Write

## Signals

void | commited | Run Last
void | group-added | Run First
void | group-removed | Run First
void | layer-added | Run First
void | layer-removed | Run First
GPtrArray* | select-tracks-for-object | Run Last
void | snapping-ended | Run Last
void | snapping-started | Run Last
void | track-added | Run First
void | track-removed | Run First

## Types and Values

| GESTimeline

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── GstObject
                ╰── GstElement
                    ╰── GstBin
                        ╰── GESTimeline

## Implemented Interfaces

GESTimeline implements GstChildProxy, GESExtractable and GESMetaContainer.

## Includes

    #include <ges/ges.h>

## Description

## Functions

### ges_timeline_new ()

    GESTimeline *
    ges_timeline_new (void);

### ges_timeline_new_audio_video ()

    GESTimeline *
    ges_timeline_new_audio_video (void);

### ges_timeline_new_from_uri ()

    GESTimeline *
    ges_timeline_new_from_uri (const gchar *uri,
                               GError **error);

### ges_timeline_add_layer ()

    gboolean
    ges_timeline_add_layer (GESTimeline *timeline,
                            GESLayer *layer);

### ges_timeline_append_layer ()

    GESLayer *
    ges_timeline_append_layer (GESTimeline *timeline);

### ges_timeline_remove_layer ()

    gboolean
    ges_timeline_remove_layer (GESTimeline *timeline,
                               GESLayer *layer);

### ges_timeline_add_track ()

    gboolean
    ges_timeline_add_track (GESTimeline *timeline,
                            GESTrack *track);

### ges_timeline_remove_track ()

    gboolean
    ges_timeline_remove_track (GESTimeline *timeline,
                               GESTrack *track);

### ges_timeline_load_from_uri ()

    gboolean
    ges_timeline_load_from_uri (GESTimeline *timeline,
                                const gchar *uri,
                                GError **error);

### ges_timeline_save_to_uri ()

    gboolean
    ges_timeline_save_to_uri (GESTimeline *timeline,
                              const gchar *uri,
                              GESAsset *formatter_asset,
                              gboolean overwrite,
                              GError **error);

### ges_timeline_commit ()

    gboolean
    ges_timeline_commit (GESTimeline *timeline);

### ges_timeline_commit_sync ()

    gboolean
    ges_timeline_commit_sync (GESTimeline *timeline);

### ges_timeline_get_tracks ()

    GList *
    ges_timeline_get_tracks (GESTimeline *timeline);

### ges_timeline_get_layer ()

    GESLayer *
    ges_timeline_get_layer (GESTimeline *timeline,
                            guint priority);

### ges_timeline_get_layers ()

    GList *
    ges_timeline_get_layers (GESTimeline *timeline);

### ges_timeline_get_track_for_pad ()

    GESTrack *
    ges_timeline_get_track_for_pad (GESTimeline *timeline,
                                    GstPad *pad);

### ges_timeline_get_pad_for_track ()

    GstPad *
    ges_timeline_get_pad_for_track (GESTimeline *timeline,
                                    GESTrack *track);

### ges_timeline_get_duration ()

    GstClockTime
    ges_timeline_get_duration (GESTimeline *timeline);

### ges_timeline_get_project()

    #define ges_timeline_get_project(obj) (GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE(obj))))

### ges_timeline_get_auto_transition ()

    gboolean
    ges_timeline_get_auto_transition (GESTimeline *timeline);

### ges_timeline_set_auto_transition ()

    void
    ges_timeline_set_auto_transition (GESTimeline *timeline,
                                      gboolean auto_transition);

### ges_timeline_get_snapping_distance ()

    GstClockTime
    ges_timeline_get_snapping_distance (GESTimeline *timeline);

### ges_timeline_set_snapping_distance ()

    void
    ges_timeline_set_snapping_distance (GESTimeline *timeline,
                                        GstClockTime snapping_distance);

### ges_timeline_get_element ()

    GESTimelineElement *
    ges_timeline_get_element (GESTimeline *timeline,
                              const gchar *name);

### ges_timeline_is_empty ()

    gboolean
    ges_timeline_is_empty (GESTimeline *timeline);

## Types and Values

### GESTimeline

    typedef struct {
      /* <readonly> */
      GList *layers;
      GList *tracks;
    } GESTimeline;

## Property Details

### The `“auto-transition”` property

      “auto-transition”          gboolean

whether the transitions are added.

Flags: Read / Write

Default value: FALSE

### The `“duration”` property

      “duration”                 guint64

The duration of the timeline.

Flags: Read

Default value: 18446744073709551615

### The `“snapping-distance”` property

      “snapping-distance”        guint64

Distance from which moving an object will snap with neighboors.

Flags: Read / Write

Default value: 0

## Signal Details

### The `“commited”` signal

    void
    user_function (GESTimeline *gestimeline,
                   gpointer     user_data)

Flags: Run Last

### The `“group-added”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESGroup    *arg1,
                   gpointer     user_data)

Flags: Run First

### The `“group-removed”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESGroup    *arg1,
                   GPtrArray   *arg2,
                   gpointer     user_data)

Flags: Run First

### The `“layer-added”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESLayer    *arg1,
                   gpointer     user_data)

Flags: Run First

### The `“layer-removed”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESLayer    *arg1,
                   gpointer     user_data)

Flags: Run First

### The `“select-tracks-for-object”` signal

    GPtrArray*
    user_function (GESTimeline     *gestimeline,
                   GESClip         *arg1,
                   GESTrackElement *arg2,
                   gpointer         user_data)

Flags: Run Last

### The `“snapping-ended”` signal

    void
    user_function (GESTimeline     *gestimeline,
                   GESTrackElement *arg1,
                   GESTrackElement *arg2,
                   guint64          arg3,
                   gpointer         user_data)

Flags: Run Last

### The `“snapping-started”` signal

    void
    user_function (GESTimeline     *gestimeline,
                   GESTrackElement *arg1,
                   GESTrackElement *arg2,
                   guint64          arg3,
                   gpointer         user_data)

Flags: Run Last

### The `“track-added”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESTrack    *arg1,
                   gpointer     user_data)

Flags: Run First

### The `“track-removed”` signal

    void
    user_function (GESTimeline *gestimeline,
                   GESTrack    *arg1,
                   gpointer     user_data)

Flags: Run First