public class Plugin extends GstObject
GStreamer is extensible, so Element
instances can be loaded at runtime.
A plugin system can provide one or more of the basic
GStreamer PluginFeature
subclasses.
A plugin should export a symbol gst_plugin_desc
that is a
struct of type GstPluginDesc.
the plugin loader will check the version of the core library the plugin was
linked against and will create a new Plugin. It will then call the
#GstPluginInitFunc function that was provided in the
Once you have a handle to a #GstPlugin (e.g. from the #GstRegistryPool), you can add any object that subclasses #GstPluginFeature.
Use gst_plugin_find_feature() and gst_plugin_get_feature_list() to find features in a plugin.
Usually plugins are always automaticlly loaded so you don't need to call
load(java.lang.String)
explicitly to bring it into memory. There are options to
statically link plugins to an app or even use GStreamer without a plugin
repository in which case load(java.lang.String)
can be needed to bring the plugin
into memory.
PluginFeature
,
ElementFactory
GObject.GCallback
NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
Plugin(NativeObject.Initializer init)
Creates a new instance of GstElement
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the long descriptive name of the plugin.
|
java.lang.String |
getFilename()
Get the filename of the plugin.
|
java.lang.String |
getLicense()
get the license of the plugin.
|
java.lang.String |
getName()
Get the short name of the plugin.
|
java.lang.String |
getOrigin()
Get the URL where the plugin comes from.
|
java.lang.String |
getPackage()
Get the package the plugin belongs to.
|
java.lang.String |
getSource()
Get the source module the plugin belongs to.
|
java.lang.String |
getVersion()
Get the version of the plugin.
|
boolean |
isLoaded()
Queries if the plugin is loaded into memory.
|
Plugin |
load()
Ensures this plugin is loaded.
|
Plugin |
load(java.lang.String pluginName)
Load the named plugin.
|
addListenerProxy, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, removeCallback, set
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public Plugin(NativeObject.Initializer init)
init
- internal initialization data.public Plugin load(java.lang.String pluginName)
pluginName
- public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getFilename()
public java.lang.String getVersion()
public java.lang.String getLicense()
public java.lang.String getSource()
public java.lang.String getPackage()
public java.lang.String getOrigin()
public boolean isLoaded()
public Plugin load()