Package ch.bailu.gtk.gst
Klasse TagSetter
- Alle implementierten Schnittstellen:
PointerInterface
Element interface that allows setting of media metadata.
Elements that support changing a stream's metadata will implement this
interface. Examples of such elements are 'vorbisenc', 'theoraenc' and
'id3v2mux'.
If you just want to retrieve metadata in your application then all you
need to do is watch for tag messages on your pipeline's bus. This
interface is only for setting metadata, not for extracting it. To set tags
from the application, find tagsetter elements and set tags using e.g.
gst_tag_setter_merge_tags() or gst_tag_setter_add_tags(). Also consider
setting the #GstTagMergeMode that is used for tag events that arrive at the
tagsetter element (default mode is to keep existing tags).
The application should do that before the element goes to %GST_STATE_PAUSED.
Elements implementing the #GstTagSetter interface often have to merge
any tags received from upstream and the tags set by the application via
the interface. This can be done like this:
Elements that support changing a stream's metadata will implement this
interface. Examples of such elements are 'vorbisenc', 'theoraenc' and
'id3v2mux'.
If you just want to retrieve metadata in your application then all you
need to do is watch for tag messages on your pipeline's bus. This
interface is only for setting metadata, not for extracting it. To set tags
from the application, find tagsetter elements and set tags using e.g.
gst_tag_setter_merge_tags() or gst_tag_setter_add_tags(). Also consider
setting the #GstTagMergeMode that is used for tag events that arrive at the
tagsetter element (default mode is to keep existing tags).
The application should do that before the element goes to %GST_STATE_PAUSED.
Elements implementing the #GstTagSetter interface often have to merge
any tags received from upstream and the tags set by the application via
the interface. This can be done like this:
<!-- language="C" --> GstTagMergeMode merge_mode; const GstTagList *application_tags; const GstTagList *event_tags; GstTagSetter *tagsetter; GstTagList *result; tagsetter = GST_TAG_SETTER (element); merge_mode = gst_tag_setter_get_tag_merge_mode (tagsetter); application_tags = gst_tag_setter_get_tag_list (tagsetter); event_tags = (const GstTagList *) element->event_tags; GST_LOG_OBJECT (tagsetter, "merging tags, merge mode = %d", merge_mode); GST_LOG_OBJECT (tagsetter, "event tags: %" GST_PTR_FORMAT, event_tags); GST_LOG_OBJECT (tagsetter, "set tags: %" GST_PTR_FORMAT, application_tags); result = gst_tag_list_merge (application_tags, event_tags, merge_mode); GST_LOG_OBJECT (tagsetter, "final tags: %" GST_PTR_FORMAT, result);
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdds the given tag / value pairs on the setter using the given merge mode.voidAdds the given tag / value pairs on the setter using the given merge mode.voidaddTagValue(int mode, Str tag, Value value) Adds the given tag / GValue pair on the setter using the given merge mode.voidaddTagValue(int mode, String tag, Value value) Adds the given tag / GValue pair on the setter using the given merge mode.voidaddTagValues(int mode, Str tag, Object... _ellipsis) Adds the given tag / GValue pairs on the setter using the given merge mode.voidaddTagValues(int mode, String tag, Object... _ellipsis) Adds the given tag / GValue pairs on the setter using the given merge mode.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizeReturns the current list of tags the setter uses.intQueries the mode by which tags inside the setter are overwritten by tags
from eventsstatic longstatic TypeSystem.TypeSizevoidMerges the given list into the setter's list using the given mode.voidReset the internal taglist.voidsetTagMergeMode(int mode) Sets the given merge mode that is used for adding tags from events to tags
specified by this interface.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
TagSetter
-
-
Methodendetails
-
getClassHandler
-
addTagValue
Adds the given tag / GValue pair on the setter using the given merge mode.- Parameter:
mode- the mode to usetag- tag to setvalue- GValue to set for the tag
-
addTagValue
Adds the given tag / GValue pair on the setter using the given merge mode.- Parameter:
mode- the mode to usetag- tag to setvalue- GValue to set for the tag
-
addTagValues
Adds the given tag / GValue pairs on the setter using the given merge mode.
The list must be terminated with %NULL.- Parameter:
mode- the mode to usetag- tag to set_ellipsis- more tag / GValue pairs to set
-
addTagValues
Adds the given tag / GValue pairs on the setter using the given merge mode.
The list must be terminated with %NULL.- Parameter:
mode- the mode to usetag- tag to set_ellipsis- more tag / GValue pairs to set
-
addTags
Adds the given tag / value pairs on the setter using the given merge mode.
The list must be terminated with %NULL.- Parameter:
mode- the mode to usetag- tag to set_ellipsis- more tag / value pairs to set
-
addTags
Adds the given tag / value pairs on the setter using the given merge mode.
The list must be terminated with %NULL.- Parameter:
mode- the mode to usetag- tag to set_ellipsis- more tag / value pairs to set
-
getTagList
Returns the current list of tags the setter uses. The list should not be
modified or freed.
This function is not thread-safe.- Gibt zurück:
- a current snapshot of the taglist used in the setter or %NULL if none is used.
-
getTagMergeMode
public int getTagMergeMode()Queries the mode by which tags inside the setter are overwritten by tags
from events- Gibt zurück:
- the merge mode used inside the element.
-
mergeTags
Merges the given list into the setter's list using the given mode.- Parameter:
list- a tag list to merge frommode- the mode to merge with
-
resetTags
public void resetTags()Reset the internal taglist. Elements should call this from within the
state-change handler. -
setTagMergeMode
public void setTagMergeMode(int mode) Sets the given merge mode that is used for adding tags from events to tags
specified by this interface. The default is #GST_TAG_MERGE_KEEP, which keeps
the tags set with this interface and discards tags from events.- Parameter:
mode- The mode with which tags are added
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-