public class PadTemplate extends GstObject
Pad
or an
ElementFactory
can handle. This allows for both inspection of
handled types before loading the element plugin as well as identifying pads
on elements that are not yet created (request or sometimes pads).
Pad and PadTemplates have Caps
attached to it to describe the media type
they are capable of dealing with. getCaps()
is used to get the caps of
a padtemplate. It is not possible to modify the caps of a padtemplate after
creation.GObject.GCallback
NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
PadTemplate(NativeObject.Initializer init)
Creates a new proxy for PadTemplate.
|
PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
Caps caps)
Creates a new pad template with a name according to the given template
and with the given arguments.
|
PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
PadPresence presence,
Caps caps)
Creates a new pad template with a name according to the given template
and with the given arguments.
|
Modifier and Type | Method and Description |
---|---|
Caps |
getCaps()
Gets the
Caps set on this PadTemplate |
addListenerProxy, getName, 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 PadTemplate(NativeObject.Initializer init)
This is only for internal use.
init
- internal initialization data.public PadTemplate(java.lang.String nameTemplate, PadDirection direction, Caps caps)
nameTemplate
- the name template.direction
- the direction of the template.caps
- a Caps
set for the template.public PadTemplate(java.lang.String nameTemplate, PadDirection direction, PadPresence presence, Caps caps)
nameTemplate
- the name template.direction
- the direction of the template.presence
- the presence of the pad, which controls the lifetime.caps
- a Caps
set for the template.