Gst.URIHandler

g GObject.GInterface GObject.GInterface Gst.URIHandler Gst.URIHandler GObject.GInterface->Gst.URIHandler

Implementations:

None

Methods

get_protocols ()

get_uri ()

get_uri_type ()

set_uri (uri)

Virtual Methods

do_get_uri ()

do_set_uri (uri)

Properties

None

Signals

None

Fields

None

Class Details

class Gst.URIHandler
Bases:

GObject.GInterface

Structure:

Gst.URIHandlerInterface

The Gst.URIHandler is an interface that is implemented by Source and Sink Gst.Element 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.make_from_uri()).

Source and Sink plugins should implement this interface when possible.

get_protocols()[source]
Returns:

the supported protocols. Returns None if the self isn’t implemented properly, or the self doesn’t support any protocols.

Return type:

[str] or None

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

get_uri()[source]
Returns:

the URI currently handled by the self. Returns None if there are no URI currently handled. The returned string must be freed with GLib.free() when no longer needed.

Return type:

str or None

Gets the currently handled URI.

get_uri_type()[source]
Returns:

the Gst.URIType of the URI handler. Returns Gst.URIType.UNKNOWN if the self isn’t implemented correctly.

Return type:

Gst.URIType

Gets the type of the given URI handler

set_uri(uri)[source]
Parameters:

uri (str) – URI to set

Raises:

GLib.Error

Returns:

True if the URI was set successfully, else False.

Return type:

bool

Tries to set the URI of the given handler.

do_get_uri() virtual
Returns:

the URI currently handled by the handler. Returns None if there are no URI currently handled. The returned string must be freed with GLib.free() when no longer needed.

Return type:

str or None

Gets the currently handled URI.

do_set_uri(uri) virtual
Parameters:

uri (str) – URI to set

Returns:

True if the URI was set successfully, else False.

Return type:

bool

Tries to set the URI of the given handler.