GstRtsp.RTSPUrl¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
abspath  | 
r/w  | 
the absolute path  | 
|
family  | 
r/w  | 
the family  | 
|
host  | 
r/w  | 
the host  | 
|
passwd  | 
r/w  | 
the password  | 
|
port  | 
r/w  | 
the port  | 
|
query  | 
r/w  | 
additional query parameters  | 
|
transports  | 
r/w  | 
the transports allowed  | 
|
user  | 
r/w  | 
the user  | 
Methods¶
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class GstRtsp.RTSPUrl¶
 Provides helper functions to handle RTSP urls.
- classmethod parse(urlstr)[source]¶
 - Parameters:
 urlstr (
str) – the url string to parse- Returns:
 - 
- url:
 location to hold the result.
 - Return type:
 (
GstRtsp.RTSPResult, url:GstRtsp.RTSPUrlorNone)
Parse the RTSP urlstr into a newly allocated
GstRtsp.RTSPUrl. Free after usage withGstRtsp.RTSPUrl.free().
- copy()[source]¶
 - Returns:
 a copy of self. Free with
GstRtsp.RTSPUrl.free() after usage.- Return type:
 
Make a copy of self.
- decode_path_components()[source]¶
 - Returns:
 None-terminated array of URL components. Free withGLib.strfreev() when no longer needed.- Return type:
 [
str]
Splits the path of self on ‘/’ boundaries, decoding the resulting components,
The decoding performed by this routine is “URI decoding”, as defined in RFC 3986, commonly known as percent-decoding. For example, a string “foo\%2fbar” will decode to “foo/bar” – the \%2f being replaced by the corresponding byte with hex value 0x2f. Note that there is no guarantee that the resulting byte sequence is valid in any given encoding. As a special case, \%00 is not unescaped to NUL, as that would prematurely terminate the string.
Also note that since paths usually start with a slash, the first component will usually be the empty string.
- get_port()[source]¶
 - Returns:
 - 
- port:
 location to hold the port
 - Return type:
 (
GstRtsp.RTSPResult, port:int)
Get the port number of self.
- get_request_uri()[source]¶
 - 
Get a newly allocated string describing the
GstRtsp.requestURI for self. 
- get_request_uri_with_control(control_path)[source]¶
 - Parameters:
 control_path (
str) – an RTSP aggregate control path- Returns:
 a string with the
GstRtsp.requestURI combined with the control path.GLib.free() after usage.- Return type:
 
Get a newly allocated string describing the
GstRtsp.requestURI for self combined with the control path for control_pathNew in version 1.18.