#include <tagsetter.h>
Public Member Functions | |
virtual | ~TagSetter () |
GstTagSetter* | gobj () |
Provides access to the underlying C GObject. | |
const GstTagSetter* | gobj () const |
Provides access to the underlying C GObject. | |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gst::TagSetter> | wrap (GstTagSetter* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
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. merge_tags() or add_tags(). The application should do that before the element goes to Gst::STATE_PAUSED.
Elements implementing the Gst::TagSetter 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:
TODO: Add code example from C API docs
virtual Gst::TagSetter::~TagSetter | ( | ) | [virtual] |
static void Gst::TagSetter::add_interface | ( | GType | gtype_implementer | ) | [static] |
const GstTagSetter* Gst::TagSetter::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
GstTagSetter* Gst::TagSetter::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Glib::RefPtr<Gst::TagSetter> wrap | ( | GstTagSetter * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |