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)

class

init ()

class

new ()

class

parse (str)

as_text ()

free ()

get_media_type ()

Details

class GstRtsp.RTSPTransport

Provides helper functions to deal with RTSP transport strings.

classmethod get_manager(trans, option)
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)
Parameters:

trans (GstRtsp.RTSPTransMode) – a GstRtsp.RTSPTransMode

Returns:

GstRtsp.RTSPResult.OK.

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

classmethod init()
Returns:

GstRtsp.RTSPResult.OK.

transport:

a GstRtsp.RTSPTransport

Return type:

(GstRtsp.RTSPResult, transport: GstRtsp.RTSPTransport)

Initialize transport so that it can be used.

classmethod new()
Returns:

a GstRtsp.RTSPResult.

transport:

location to hold the new GstRtsp.RTSPTransport

Return type:

(GstRtsp.RTSPResult, transport: GstRtsp.RTSPTransport)

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

classmethod parse(str)
Parameters:

str (str) – a transport string

Returns:

a GstRtsp.RTSPResult.

transport:

a GstRtsp.RTSPTransport

Return type:

(GstRtsp.RTSPResult, transport: GstRtsp.RTSPTransport)

Parse the RTSP transport string str into transport.

as_text()
Returns:

a string describing the RTSP transport or None when the transport is invalid.

Return type:

str or None

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

free()
Returns:

GstRtsp.RTSPResult.OK.

Return type:

GstRtsp.RTSPResult

Free the memory used by self.

get_media_type()
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.