org.gstreamer
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, GObject.NOTIFY
NativeObject.Initializer
Modifier and Type | Field and Description |
---|---|
static String |
GTYPE_NAME |
defaultInit, ownsHandle
Constructor and Description |
---|
Plugin(NativeObject.Initializer init)
Creates a new instance of GstElement
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the long descriptive name of the plugin.
|
String |
getFilename()
Get the filename of the plugin.
|
String |
getLicense()
get the license of the plugin.
|
String |
getName()
Get the short name of the plugin.
|
String |
getOrigin()
Get the URL where the plugin comes from.
|
String |
getPackage()
Get the package the plugin belongs to.
|
String |
getSource()
Get the source module the plugin belongs to.
|
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(String pluginName)
Load the named plugin.
|
addListenerProxy, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref
addCallback, connect, connect, connect, connect, disconnect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, getType, getTypeName, invalidate, listPropertyNames, removeCallback, set
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public static final String GTYPE_NAME
public Plugin(NativeObject.Initializer init)
init
- internal initialization data.public Plugin load(String pluginName)
pluginName
- public String getName()
public String getDescription()
public String getFilename()
public String getVersion()
public String getLicense()
public String getSource()
public String getPackage()
public String getOrigin()
public boolean isLoaded()
public Plugin load()
Copyright © 2014. All rights reserved.