make_from_uri

function make_from_uri(type:Gst.URIType, uri:String, elementname:String):Gst.Element {
    // Gjs wrapper for gst_element_make_from_uri()
}

Creates an element for handling the given URI.

type

Whether to create a source or a sink

uri

URI to create an element for

elementname

Name of created element, can be NULL.

Returns

a new element or NULL if none could be created