Class: Gst::Plugin
Class Method Summary collapse
-
.list_free(list) ⇒ nil
Unrefs each member of list, then frees the list.
-
.load_by_name(name) ⇒ Gst::Plugin
Load the named plugin.
-
.load_file(filename) ⇒ Gst::Plugin
Loads the given plugin and refs it.
-
.register_static(major_version, minor_version, name, description, init_func, version, license, source, package, origin) ⇒ Boolean
Registers a static plugin, ie.
-
.register_static_full(major_version, minor_version, name, description, init_full_func, version, license, source, package, origin, user_data) ⇒ Boolean
Registers a static plugin, ie.
Instance Method Summary collapse
-
#add_dependency(env_vars, paths, names, flags) ⇒ nil
Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it).
-
#add_dependency_simple(env_vars, paths, names, flags) ⇒ nil
Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it).
- #add_status_error(message) ⇒ nil
- #add_status_info(message) ⇒ nil
- #add_status_warning(message) ⇒ nil
-
#cache_data ⇒ Gst::Structure
Gets the plugin specific data cache.
-
#cache_data=(cache_data) ⇒ nil
Adds plugin specific data to cache.
-
#description ⇒ String
Get the long descriptive name of the plugin.
-
#filename ⇒ Gst::filename
get the filename of the plugin.
-
#is_loaded ⇒ Boolean
queries if the plugin is loaded into memory.
-
#license ⇒ String
get the license of the plugin.
-
#load ⇒ Gst::Plugin
Loads plugin.
-
#name ⇒ String
Get the short name of the plugin.
-
#origin ⇒ String
get the URL where the plugin comes from.
-
#package ⇒ String
get the package the plugin belongs to.
-
#release_date_string ⇒ String
Get the release date (and possibly time) in form of a string, if available.
-
#source ⇒ String
get the source module the plugin belongs to.
-
#status_errors ⇒ Array<String>
An array of plugin status error messages, or NULL.
-
#status_infos ⇒ Array<String>
An array of plugin status info messages, or NULL.
-
#status_warnings ⇒ Array<String>
An array of plugin status warning messages, or NULL.
-
#version ⇒ String
get the version of the plugin.
Methods inherited from Object
#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref
Class Method Details
.list_free(list) ⇒ nil
Unrefs each member of list, then frees the list.
.load_by_name(name) ⇒ Gst::Plugin
Load the named plugin. Refs the plugin. nil on error.
.load_file(filename) ⇒ Gst::Plugin
Loads the given plugin and refs it. Caller needs to unref after use. reference to the newly-loaded GstPlugin, or nil if an error occurred.
.register_static(major_version, minor_version, name, description, init_func, version, license, source, package, origin) ⇒ Boolean
Registers a static plugin, ie. a plugin which is private to an application or library and contained within the application or library (as opposed to being shipped as a separate module file).
You must make sure that GStreamer has been initialised (with gst_init() or via gst_init_get_option_group()) before calling this function.
.register_static_full(major_version, minor_version, name, description, init_full_func, version, license, source, package, origin, user_data) ⇒ Boolean
Registers a static plugin, ie. a plugin which is private to an application or library and contained within the application or library (as opposed to being shipped as a separate module file) with a Gst::PluginInitFullFunc which allows user data to be passed to the callback function (useful for bindings).
You must make sure that GStreamer has been initialised (with gst_init() or via gst_init_get_option_group()) before calling this function.
Instance Method Details
#add_dependency(env_vars, paths, names, flags) ⇒ nil
Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it).
GStreamer will re-inspect plugins with external dependencies whenever any of the external dependencies change. This is useful for plugins which wrap other plugin systems, e.g. a plugin which wraps a plugin-based visualisation library and makes visualisations available as GStreamer elements, or a codec loader which exposes elements and/or caps dependent on what external codec libraries are currently installed.
#add_dependency_simple(env_vars, paths, names, flags) ⇒ nil
Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it).
GStreamer will re-inspect plugins with external dependencies whenever any of the external dependencies change. This is useful for plugins which wrap other plugin systems, e.g. a plugin which wraps a plugin-based visualisation library and makes visualisations available as GStreamer elements, or a codec loader which exposes elements and/or caps dependent on what external codec libraries are currently installed.
Convenience wrapper function for gst_plugin_add_dependency() which takes simple strings as arguments instead of string arrays, with multiple arguments separated by predefined delimiters (see above).
#add_status_error(message) ⇒ nil
#add_status_info(message) ⇒ nil
#add_status_warning(message) ⇒ nil
#cache_data ⇒ Gst::Structure
Gets the plugin specific data cache. If it is nil there is no cached data stored. This is the case when the registry is getting rebuilt. Gst::Structure or nil.
#cache_data=(cache_data) ⇒ nil
Adds plugin specific data to cache. Passes the ownership of the structure to the plugin.
The cache is flushed every time the registry is rebuilt.
#description ⇒ String
Get the long descriptive name of the plugin
#filename ⇒ Gst::filename
get the filename of the plugin
#is_loaded ⇒ Boolean
queries if the plugin is loaded into memory
#license ⇒ String
get the license of the plugin
#load ⇒ Gst::Plugin
Loads plugin. Note that the return value is the loaded plugin; plugin is untouched. The normal use pattern of this function goes like this:
|[ GstPlugin *loaded_plugin; loaded_plugin = gst_plugin_load (plugin); // presumably, we're no longer interested in the potentially-unloaded plugin gst_object_unref (plugin); plugin = loaded_plugin; ]| nil on error.
#name ⇒ String
Get the short name of the plugin
#origin ⇒ String
get the URL where the plugin comes from
#package ⇒ String
get the package the plugin belongs to.
#release_date_string ⇒ String
Get the release date (and possibly time) in form of a string, if available.
For normal GStreamer plugin releases this will usually just be a date in the form of "YYYY-MM-DD", while pre-releases and builds from git may contain a time component after the date as well, in which case the string will be formatted like "YYYY-MM-DDTHH:MMZ" (e.g. "2012-04-30T09:30Z").
There may be plugins that do not have a valid release date set on them. available.
#source ⇒ String
get the source module the plugin belongs to.
#status_errors ⇒ Array<String>
Returns an array of plugin status error messages, or NULL.
#status_infos ⇒ Array<String>
Returns an array of plugin status info messages, or NULL.
#status_warnings ⇒ Array<String>
Returns an array of plugin status warning messages, or NULL.
#version ⇒ String
get the version of the plugin