Functions

  create_video_sink ()
  init (argv)
  init_with_args (argv, parameter_string, entries, translation_domain)

Details

ClutterGst.create_video_sink()
Returns:the newly created ClutterGst.VideoSink.
Return type:Gst.Element

Creates a new ClutterGst.VideoSink initialized with Clutter’s Cogl context.

New in version 3.0.

ClutterGst.init(argv)
Parameters:argv ([str] or None) – A pointer to an array
Returns:A Clutter.InitError.
argv:A pointer to an array
Return type:(Clutter.InitError, argv: [str])

Utility function to initialize both Clutter and GStreamer.

This function should be called before calling any other GLib functions. If this is not an option, your program must initialise the GLib thread system using g_thread_init() before any other GLib functions are called.

ClutterGst.init_with_args(argv, parameter_string, entries, translation_domain)
Parameters:
  • argv ([str] or None) – A pointer to an array
  • parameter_string (str) – a string which is displayed in the first line of –help output, after programname [OPTION...]
  • entries (GLib.OptionEntry) – a None-terminated array of GLib.OptionEntry s describing the options of your program
  • translation_domain (str) – a translation domain to use for translating the –help output for the options in entries with gettext(), or None
Raises:

GLib.Error

Returns:

Clutter.InitError.SUCCESS on success, a negative integer on failure.

argv:A pointer to an array

Return type:

(Clutter.InitError, argv: [str])

This function does the same work as ClutterGst.init(). Additionally, it allows you to add your own command line options, and it automatically generates nicely formatted –help output. Clutter’s and GStreamer’s GLib.OptionGroup s are added to the set of available options.

Your program must initialise the GLib thread system using g_thread_init() before any other GLib functions are called.

New in version 1.0.