public class Plugin extends GstObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstPlugin.html
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 automatically loaded so you don't need to call
loadByName(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 loadByName(java.lang.String)
can be needed to bring the
plugin into memory.
PluginFeature
,
ElementFactory
GstObject.Handle
GObject.GCallback, GObject.GInterface
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>
Modifier and Type | Field and Description |
---|---|
static String |
GTYPE_NAME |
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 |
getReleaseDateString()
Get the release date (and possibly time) in form of a string, if
available.
|
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.
|
static Plugin |
loadByName(String pluginName)
Load the named plugin.
|
addControlBinding, getAsString, getControlBinding, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, setName, suggestNextSync, syncValues, toString
addCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, set
close, disown, equals, getPointer, getRawPointer, hashCode
public static final String GTYPE_NAME
public static Plugin loadByName(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 String getReleaseDateString()
public boolean isLoaded()
Copyright © 2021 gstreamer-java. All rights reserved.