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: - Returns: - Truewhen addr is multicast.- Return type: - Check if the given addr is a multicast address. 
- 
GstSdp.sdp_make_keymgmt(uri, base64)[source]¶
- Parameters: - Returns: - a - strkey-mgmt data,- Return type: - 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.SDPMediaand store the result in media.
- 
GstSdp.sdp_media_set_media_from_caps(caps, media)[source]¶
- Parameters: - caps (Gst.Caps) – aGst.Caps
- media (GstSdp.SDPMedia) – aGstSdp.SDPMedia
 - Returns: - Return type: - 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]… - a=extmap:(id)[/direction] (extensionname) (extensionattributes) - New in version 1.8. 
- caps (
- 
GstSdp.sdp_message_as_uri(scheme, msg)[source]¶
- Parameters: - scheme (str) – the uri scheme
- msg (GstSdp.SDPMessage) – theGstSdp.SDPMessage
 - Returns: - a uri for msg. - Return type: - 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. 
- scheme (
- 
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.SDPMessageand 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: - data (bytes) – the start of the buffer
- msg (GstSdp.SDPMessage) – the resultGstSdp.SDPMessage
 - Returns: - GstSdp.SDPResult.OKon success.- Return type: - Parse the contents of size bytes pointed to by data and store the result in msg. 
- data (
- 
GstSdp.sdp_message_parse_uri(uri, msg)[source]¶
- Parameters: - uri (str) – the start of the uri
- msg (GstSdp.SDPMessage) – the resultGstSdp.SDPMessage
 - Returns: - GstSdp.SDPResult.OKon success.- Return type: - 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 
- uri (