GstRtsp.RTSPTransport

Fields

Name Type Access Description
append bool r/w is append mode was selected
client_port GstRtsp.RTSPRange r/w the client port pair for receiving GstRtsp.data. For TCP based transports, applications can use this field to store the sender and receiver ports of the client.
destination str r/w the destination ip/hostname
interleaved GstRtsp.RTSPRange r/w the interleave range
layers int r/w the number of layers
lower_transport GstRtsp.RTSPLowerTrans r/w the lower transport
mode_play bool r/w if play mode was selected
mode_record bool r/w if record mode was selected
port GstRtsp.RTSPRange r/w the port pair for multicast sessions
profile GstRtsp.RTSPProfile r/w the tansport profile
server_port GstRtsp.RTSPRange r/w the server port pair for receiving GstRtsp.data. For TCP based transports, applications can use this field to store the sender and receiver ports of the server.
source str r/w the source ip/hostname
ssrc int r/w the ssrc that the sender/receiver will use
trans GstRtsp.RTSPTransMode r/w the transport mode
ttl int r/w the time to live for multicast UDP

Methods

class get_manager (trans, option)
class get_mime (trans, mime)
class new (transport)
class parse (str, transport)
  as_text ()
  free ()
  get_media_type ()
  init ()

Details

class GstRtsp.RTSPTransport

Provides helper functions to deal with RTSP transport strings.

classmethod get_manager(trans, option)[source]
Parameters:
Returns:

GstRtsp.RTSPResult.OK.

manager:location to hold the result

Return type:

(GstRtsp.RTSPResult, manager: str or None)

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, mime)[source]
Parameters:
Returns:

GstRtsp.RTSPResult.OK.

Return type:

GstRtsp.RTSPResult

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 for GstRtsp.RTSPProfile.AVP. Use GstRtsp.RTSPTransport.get_media_type() instead.

classmethod new(transport)[source]
Parameters:transport (GstRtsp.RTSPTransport) – location to hold the new GstRtsp.RTSPTransport
Returns:a GstRtsp.RTSPResult.
Return type:GstRtsp.RTSPResult

Allocate a new initialized GstRtsp.RTSPTransport. Use GstRtsp.RTSPTransport.free() after usage.

classmethod parse(str, transport)[source]
Parameters:
Returns:

a GstRtsp.RTSPResult.

Return type:

GstRtsp.RTSPResult

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:str

Convert self into a string that can be used to signal the transport in an RTSP SETUP GstRtsp.response.

free()[source]
Returns:GstRtsp.RTSPResult.OK.
Return type:GstRtsp.RTSPResult

Free the memory used by self.

get_media_type()[source]
Returns:GstRtsp.RTSPResult.OK.
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.

init()[source]
Returns:GstRtsp.RTSPResult.OK.
Return type:GstRtsp.RTSPResult

Initialize self so that it can be used.