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).
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstPadTemplate.html
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.
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 |
Constructor and Description |
---|
PadTemplate(String nameTemplate,
PadDirection direction,
Caps caps)
Creates a new pad template with a name according to the given template,
with the given arguments and
PadPresence.ALWAYS |
PadTemplate(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 |
PadDirection |
getDirection()
Gets the direction of this template
|
PadPresence |
getPresence()
Gets presence of this template
|
String |
getTemplateName()
Gets the name of this template
|
addControlBinding, getControlBinding, getName, getParent, hasActiveControlBindings, removeControlBinding, 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 PadTemplate(String nameTemplate, PadDirection direction, Caps caps)
PadPresence.ALWAYS
nameTemplate
- the name template.direction
- the direction of the template.caps
- a Caps
set for the template.public PadTemplate(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.public Caps getCaps()
Caps
set on this PadTemplate
public String getTemplateName()
public PadDirection getDirection()
PadDirection
public PadPresence getPresence()
PadPresence
Copyright © 2019 gstreamer-java. All rights reserved.