Class: Gst::DeviceProviderFactory

Inherits:
PluginFeature show all
Defined in:
(unknown)

Overview

The opaque Gst::DeviceProviderFactoryClass data structure.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PluginFeature

#check_version, list_copy, list_debug, list_free, #load, #plugin, #plugin_name, #rank, #rank=, rank_compare_func, #rank_raw

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, #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

.find(name) ⇒ Gst::DeviceProviderFactory

Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing. found, nil otherwise

Parameters:

  • name (String)

    name of factory to find

Returns:

.get_by_name(factoryname) ⇒ Gst::DeviceProvider

Returns the device provider of the type defined by the given device provider factory. if unable to create device provider

Parameters:

  • factoryname (String)

    a named factory to instantiate

Returns:

.list_get_device_providers(minrank) ⇒ GLib::List<Gst::DeviceProviderFactory>

Get a list of factories with a rank greater or equal to minrank. The list of factories is returned by decreasing rank. a #GList of Gst::DeviceProviderFactory device providers. Use gst_plugin_feature_list_free() after usage.

Parameters:

Returns:

Instance Method Details

#device_provider_typeGLib::Type

Get the #GType for device providers managed by this factory. The type can only be retrieved if the device provider factory is loaded, which can be assured with gst_plugin_feature_load().

Returns:

  • (GLib::Type)

    the #GType for device providers managed by this factory.

#getGst::DeviceProvider

Returns the device provider of the type defined by the given device providerfactory. if the device provider couldn't be created

Returns:

#get_metadata(key) ⇒ String

Get the metadata on factory with key. when there was no metadata with the given key.

Parameters:

  • key (String)

    a key

Returns:

  • (String)

    the metadata with key on factory or nil

#has_classes(classes) ⇒ Boolean

Check if factory matches all of the given classes

Parameters:

  • classes (String)

    a "/" separate list of classes to match, only match if all classes are matched

Returns:

  • (Boolean)

    true if factory matches or if classes is nil.

#has_classesv(classes) ⇒ Boolean

Check if factory matches all of the given classes

Parameters:

  • classes (Array<String>)

    a nil terminated array of classes to match, only match if all classes are matched

Returns:

  • (Boolean)

    true if factory matches.

#metadata_keysArray<String>

Get the available keys for the metadata on factory. an array of key strings, or nil when there is no metadata. Free with g_strfreev() when no longer needed.

Returns:

  • (Array<String>)