GstRtsp.RTSPTransport¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
append |
r/w |
is append mode was selected |
|
client_port |
r/w |
the client port pair for receiving |
|
destination |
r/w |
the destination ip/hostname |
|
interleaved |
r/w |
the interleave range |
|
layers |
r/w |
the number of layers |
|
lower_transport |
r/w |
the lower transport |
|
mode_play |
r/w |
if play mode was selected |
|
mode_record |
r/w |
if record mode was selected |
|
port |
r/w |
the port pair for multicast sessions |
|
profile |
r/w |
the tansport profile |
|
server_port |
r/w |
the server port pair for receiving |
|
source |
r/w |
the source ip/hostname |
|
ssrc |
r/w |
the ssrc that the sender/receiver will use |
|
trans |
r/w |
the transport mode |
|
ttl |
r/w |
the time to live for multicast UDP |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
Details¶
- class GstRtsp.RTSPTransport¶
Provides helper functions to deal with RTSP transport strings.
- classmethod get_manager(trans, option)[source]¶
- Parameters:
trans (
GstRtsp.RTSPTransMode
) – aGstRtsp.RTSPTransMode
option (
int
) – option index.
- Returns:
-
- manager:
location to hold the result
- Return type:
(
GstRtsp.RTSPResult
, manager:str
orNone
)
Get the
Gst.Element
that can handle the buffers transported over trans.It is possible that there are several managers available, use option to selected one.
manager will contain an element name or
None
when no manager is needed/available for trans.
- classmethod get_mime(trans)[source]¶
- Parameters:
trans (
GstRtsp.RTSPTransMode
) – aGstRtsp.RTSPTransMode
- Returns:
-
- mime:
location to hold the result
- Return type:
(
GstRtsp.RTSPResult
, mime:str
)
Get the mime type of the transport mode trans. This mime type is typically used to generate
Gst.Caps
events.Deprecated since version ???: This functions only deals with the
GstRtsp.RTSPTransMode
and only returns the mime type forGstRtsp.RTSPProfile.AVP
. UseGstRtsp.RTSPTransport.get_media_type
() instead.
- classmethod init()[source]¶
- Returns:
-
- transport:
- Return type:
(
GstRtsp.RTSPResult
, transport:GstRtsp.RTSPTransport
)
Initialize transport so that it can be used.
- classmethod new()[source]¶
- Returns:
-
- transport:
location to hold the new
GstRtsp.RTSPTransport
- Return type:
(
GstRtsp.RTSPResult
, transport:GstRtsp.RTSPTransport
)
Allocate a new initialized
GstRtsp.RTSPTransport
. UseGstRtsp.RTSPTransport.free
() after usage.
- classmethod parse(str)[source]¶
- Parameters:
str (
str
) – a transport string- Returns:
-
- transport:
- Return type:
(
GstRtsp.RTSPResult
, transport:GstRtsp.RTSPTransport
)
Parse the RTSP transport string str into transport.
- as_text()[source]¶
- Returns:
a string describing the RTSP transport or
None
when the transport is invalid.- Return type:
Convert self into a string that can be used to signal the transport in an RTSP SETUP
GstRtsp.response
.
- get_media_type()[source]¶
- Returns:
-
- media_type:
media type of self
- Return type:
(
GstRtsp.RTSPResult
, media_type:str
)
Get the media type of self. This media type is typically used to generate
Gst.Caps
events.New in version 1.4.