GES.MetaContainer

g GES.MetaContainer GES.MetaContainer GObject.GInterface GObject.GInterface GObject.GInterface->GES.MetaContainer

Implementations:
 GES.Asset, GES.Layer, GES.Timeline, GES.TimelineElement, GES.Track

Methods

  add_metas_from_string (str)
  check_meta_registered (meta_item, flags, type)
  foreach (func, *user_data)
  get_boolean (meta_item)
  get_date (meta_item)
  get_date_time (meta_item)
  get_double (meta_item)
  get_float (meta_item)
  get_int (meta_item)
  get_int64 (meta_item)
  get_meta (key)
  get_string (meta_item)
  get_uint (meta_item)
  get_uint64 (meta_item)
  metas_to_string ()
  register_meta (flags, meta_item, value)
  register_meta_boolean (flags, meta_item, value)
  register_meta_date (flags, meta_item, value)
  register_meta_date_time (flags, meta_item, value)
  register_meta_double (flags, meta_item, value)
  register_meta_float (flags, meta_item, value)
  register_meta_int (flags, meta_item, value)
  register_meta_int64 (flags, meta_item, value)
  register_meta_string (flags, meta_item, value)
  register_meta_uint (flags, meta_item, value)
  register_meta_uint64 (flags, meta_item, value)
  set_boolean (meta_item, value)
  set_date (meta_item, value)
  set_date_time (meta_item, value)
  set_double (meta_item, value)
  set_float (meta_item, value)
  set_int (meta_item, value)
  set_int64 (meta_item, value)
  set_meta (meta_item, value)
  set_string (meta_item, value)
  set_uint (meta_item, value)
  set_uint64 (meta_item, value)

Virtual Methods

None

Properties

None

Signals

Name Short Description
notify-meta  

Fields

None

Class Details

class GES.MetaContainer
Bases:GObject.GInterface
Structure:GES.MetaContainerInterface

Interface that allows reading and writing meta

add_metas_from_string(str)[source]
Parameters:str (str) – a string created with GES.MetaContainer.metas_to_string()
Returns:True on success, False if there was an error.
Return type:bool

Deserializes a meta container.

check_meta_registered(meta_item, flags, type)[source]
Parameters:
Return type:

bool

foreach(func, *user_data)[source]
Parameters:

Calls the given function for each metadata inside the meta container. Note that if there is no metadata, the function won’t be called at all.

get_boolean(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: bool)
get_date(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: GLib.Date)
get_date_time(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: Gst.DateTime)
get_double(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: float)
get_float(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns False if meta_item can not be found.
Return type:(bool, dest: float)
get_int(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: int)
get_int64(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns False if meta_item can not be found.
Return type:(bool, dest: int)
get_meta(key)[source]
Parameters:key (str) – The key name of the meta to retrieve
Returns:the GObject.Value corresponding to the meta with the given key.
Return type:GObject.Value

Gets the value of a given meta item, returns None if key can not be found.

get_string(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:str
get_uint(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: int)
get_uint64(meta_item)[source]
Parameters:meta_item (str) – Name of the meta item to get
Returns:
dest:Destination to which value of meta item will be copied Gets the value of a given meta item, returns None if meta_item can not be found.
Return type:(bool, dest: int)
metas_to_string()[source]
Returns:a newly-allocated string, or None in case of an error. The string must be freed with GLib.free() when no longer needed.
Return type:str or None

Serializes a meta container to a string.

register_meta(flags, meta_item, value)[source]
Parameters:
Returns:

True if the static meta could be added, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_boolean(flags, meta_item, value)[source]
Parameters:
Return type:

bool

register_meta_date(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_date_time(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_double(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_float(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_int(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_int64(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_string(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_uint(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

register_meta_uint64(flags, meta_item, value)[source]
Parameters:
Returns:

True if the meta could be register, False otherwize

Return type:

bool

Sets a static meta on self. This method lets you define static metadatas, which means that the type of the registered will be the only type accepted for this meta on that particular self.

set_boolean(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (bool) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_date(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (GLib.Date) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_date_time(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (Gst.DateTime) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_double(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (float) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_float(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (float) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_int(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (int) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_int64(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (int) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_meta(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (GObject.Value or None) – Value to set Sets the value of a given meta item
Returns:

True if the meta could be added, False otherwize

Return type:

bool

set_string(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (str) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_uint(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (int) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

set_uint64(meta_item, value)[source]
Parameters:
  • meta_item (str) – Name of the meta item to set
  • value (int) – Value to set
Returns:

True if the meta could be added, False otherwize

Return type:

bool

Sets the value of a given meta item

Signal Details

GES.MetaContainer.signals.notify_meta(meta_container, object, p0)
Signal Name:

notify-meta

Flags:

RUN_FIRST, NO_RECURSE, DETAILED, NO_HOOKS

Parameters: