Gst.ElementFactory.prototype.create

function create(name:String):Gst.Element {
    // Gjs wrapper for gst_element_factory_create()
}

Create a new element of the type defined by the given elementfactory. It will be given the name supplied, since all elements require a name as their first argument.

name

name of new element, or NULL to automatically create a unique name

Returns

new Gst.Element or NULL if the element couldn't be created