Gst.URIHandler¶
- Implementations:
None
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gst.URIHandler¶
- Bases:
- Structure:
The
Gst.URIHandleris an interface that is implemented by Source and SinkGst.Elementto 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
Noneif 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
Noneif 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.URITypeof the URI handler. ReturnsGst.URIType.UNKNOWNif 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.