Functions

  sdp_address_is_multicast (nettype, addrtype, addr)
  sdp_make_keymgmt (uri, base64)
  sdp_media_new ()
  sdp_media_set_media_from_caps (caps, media)
  sdp_message_as_uri (scheme, msg)
  sdp_message_new ()
  sdp_message_new_from_text (text)
  sdp_message_parse_buffer (data, msg)
  sdp_message_parse_uri (uri, msg)

Details

GstSdp.sdp_address_is_multicast(nettype, addrtype, addr)[source]
Parameters:
  • nettype (str) – a network type
  • addrtype (str) – an address type
  • addr (str) – an address
Returns:

True when addr is multicast.

Return type:

bool

Check if the given addr is a multicast address.

GstSdp.sdp_make_keymgmt(uri, base64)[source]
Parameters:
  • uri (str) – a str URI
  • base64 (str) – a str base64-encoded key data
Returns:

a str key-mgmt data,

Return type:

str

Makes key management data

New in version 1.8.

GstSdp.sdp_media_new()[source]
Returns:a GstSdp.SDPResult.
media:pointer to new GstSdp.SDPMedia
Return type:(GstSdp.SDPResult, media: GstSdp.SDPMedia)

Allocate a new GstSdp.SDPMedia and store the result in media.

GstSdp.sdp_media_set_media_from_caps(caps, media)[source]
Parameters:
Returns:

a GstSdp.SDPResult.

Return type:

GstSdp.SDPResult

Mapping of caps to SDP fields:

a=rtpmap:(payload) (encoding_name) or (clock_rate)[or (encoding_params)]

a=framesize:(payload) (width)-(height)

a=fmtp:(payload) (param)[=(value)];…

a=rtcp-fb:(payload) (param1) [param2]…

New in version 1.8.

GstSdp.sdp_message_as_uri(scheme, msg)[source]
Parameters:
Returns:

a uri for msg.

Return type:

str

Creates a uri from msg with the given scheme. The uri has the format:

`scheme`:///[#type=value *[&type=value]]

Where each value is url encoded.

GstSdp.sdp_message_new()[source]
Returns:a GstSdp.SDPResult.
msg:pointer to new GstSdp.SDPMessage
Return type:(GstSdp.SDPResult, msg: GstSdp.SDPMessage)

Allocate a new GstSdp.SDPMessage and store the result in msg.

GstSdp.sdp_message_new_from_text(text)[source]
Parameters:text (str) – A dynamically allocated string representing the SDP description
Returns:a GstSdp.SDPResult.
msg:pointer to new GstSdp.SDPMessage
Return type:(GstSdp.SDPResult, msg: GstSdp.SDPMessage)

Parse text and create a new SDPMessage from these.

New in version 1.16.

GstSdp.sdp_message_parse_buffer(data, msg)[source]
Parameters:
Returns:

GstSdp.SDPResult.OK on success.

Return type:

GstSdp.SDPResult

Parse the contents of size bytes pointed to by data and store the result in msg.

GstSdp.sdp_message_parse_uri(uri, msg)[source]
Parameters:
Returns:

GstSdp.SDPResult.OK on success.

Return type:

GstSdp.SDPResult

Parse the null-terminated uri and store the result in msg.

The uri should be of the form:

scheme://[address’:ttl=ttl [:noa=noa]’]/’sessionname [#type=value *[&type=value]’]

where value is url encoded. This looslely resembles http://tools.ietf.org/html/draft-fujikawa-sdp-url-01