XML
Object Hierarchy:
Description:
public class XML :
Object
GStreamer pipelines can be saved to xml files using write_file. They can be
loaded back using parse_doc /
parse_file / parse_memory. Additionally one can load saved pipelines into the
gst-editor to inspect the graph. Element implementations need to override the
Object.save_thyself() and Object
.restore_thyself() virtual functions of Object. broken for all but the most simple
pipelines. It will most likely be removed in future. Don't use it.
Namespace: Gst
Package: gstreamer-0.10
Content:
Static methods:
-
public static weak Element make_element (void* cur, Object parent)
Load the element from the XML description
-
public static void* write (Element element)
Converts the given element into an XML presentation.
-
public static int write_file (Element element, FileStream out)
Converts the given element into XML and writes the formatted XML to an open file.
Creation methods:
Methods:
-
public weak Element get_element (string name)
This function is used to get a pointer to the GstElement corresponding to name in the pipeline
description. You would use this if you have to do anything to the element after loading.
-
public unowned List<Element> get_topelements ()
Retrieve a list of toplevel elements. of the list and must not free or modify the list. The caller also
does not own a reference to any of the elements in the list and should obtain its own reference using
ref if necessary.
-
public virtual void object_saved (Object object, void* self)
-
public bool parse_doc (void* doc, string root)
Fills the GstXML object with the elements from the xmlDocPtr.
-
public bool parse_file (string fname, string root)
Fills the GstXML object with the corresponding elements from the XML file fname. Optionally it will only
build the element from the element node root (if it is not NULL). This feature is useful if you only want to build a specific element
from an XML file but not the pipeline it is embedded in. Pass "-" as fname to read from stdin. You can also pass a URI of any format
that libxml supports, including http.
-
public bool parse_memory (uchar[] buffer, uint size, string root)
Fills the GstXML object with the corresponding elements from an in memory XML buffer.
Signals:
Fields: