Gst.URIHandler¶
- Implementations:
None
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gst.URIHandler¶
- Bases:
- Structure:
The
Gst.URIHandler
is an interface that is implemented by Source and SinkGst.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:
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 withGLib.free
() when no longer needed.- Return type:
Gets the currently handled URI.
- get_uri_type()[source]¶
- Returns:
the
Gst.URIType
of the URI handler. ReturnsGst.URIType.UNKNOWN
if the self isn’t implemented correctly.- Return type:
Gets the type of the given URI handler
- set_uri(uri)[source]¶
- Parameters:
uri (
str
) – URI to set- Raises:
- Returns:
- Return type:
Tries to set the URI of the given handler.