Functions¶
|
|
|
Details¶
- ClutterGst.create_video_sink()¶
- Returns:
the newly created
ClutterGst.VideoSink
.- Return type:
Creates a new
ClutterGst.VideoSink
initialized with Clutter’s Cogl context.New in version 3.0.
- ClutterGst.init(argv)¶
- Parameters:
- Returns:
-
- 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:
parameter_string (
str
) – a string which is displayed in the first line of –help output, afterprogramname [OPTION...]
entries (
GLib.OptionEntry
) – aNone
-terminated array ofGLib.OptionEntry
s describing the options of your programtranslation_domain (
str
) – a translation domain to use for translating the –help output for the options in entries with gettext(), orNone
- Raises:
- 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’sGLib.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.