gst.urihandler_mixin

Module for [URIHandler] interface mixin

Templates 2

tmplURIHandlerT()

The #GstURIHandler is an interface that is implemented by Source and Sink #GstElement to unify handling of URI.

An application can use the following functions to quickly get an element that handles the given URI for reading or writing ([gst.element.Element.makeFromUri]).

Source and Sink plugins should implement this interface when possible.

Functions
string[] getProtocols()

Gets the list of protocols supported by handler. This list may not be modified.

Returns

the

supported protocols. Returns null if the handler isn't implemented properly, or the handler doesn't support any protocols.

string getUri()

Gets the currently handled URI.

Returns

the URI currently handled by

the handler. Returns null if there are no URI currently handled. The returned string must be freed with [glib.global.gfree] when no longer needed.

gst.types.URIType getUriType()

Gets the type of the given URI handler

Returns

the #GstURIType of the URI handler.

Returns #GST_URI_UNKNOWN if the handler isn't implemented correctly.

bool setUri(string uri)

Tries to set the URI of the given handler.

Parameters

uriURI to set

Returns

true if the URI was set successfully, else false.

Throws

[ErrorWrap]
tmplURIHandlerGidBuilderT()