Optionalproperties: Partial<Static$gtypeAdd the attribute with key and value to msg.
the key
Optionalvalue: stringthe value
GST_SDP_OK.
Add the specified bandwidth information to msg.
the bandwidth modifier type
the bandwidth in kilobits per second
Adds media to the array of medias in msg. This function takes ownership of
the contents of media so that media will have to be reinitialized with
gst_sdp_media_init() before it can be used again.
a GstSdp.SDPMedia to add
Add time information start and stop to msg.
the start time
the stop time
the repeat times
Add time zone information to msg.
the NTP time that a time zone adjustment happens
the offset from the time when the session was first scheduled
Convert the contents of msg to a text string.
A dynamically allocated string representing the SDP description.
Get the number of attributes in msg.
the number of attributes in msg.
Mapping of attributes of GstSdp.SDPMessage to Gst.Caps
Get the number of bandwidth information in msg.
the number of bandwidth information in msg.
Allocate a new copy of msg and store the result in copy. The value in
copy should be release with gst_sdp_message_free function.
Get the number of emails in msg.
the number of emails in msg.
Free all resources allocated by msg. msg should not be used anymore after
this function. This function should be used when msg was dynamically
allocated with gst_sdp_message_new().
Get the attribute at position idx in msg.
the index
the GstSdp.SDPAttribute at position idx.
Get the first attribute with key key in msg.
the key
the attribute value of the first attribute with key.
Get the nth attribute with key key in msg.
the key
the index
the attribute value of the nth attribute with key.
Get the bandwidth at index idx from msg.
the bandwidth index
Get the connection of msg.
a GstSdp.SDPConnection. The result remains valid as long as msg is valid.
Get the email with number idx from msg.
an email index
the email at position idx.
Get the origin of msg.
a GstSdp.SDPOrigin. The result remains valid as long as msg is valid.
Get the phone with number idx from msg.
a phone index
the phone at position idx.
Get time zone information with index idx from msg.
the zone index
Insert attribute into the array of attributes in msg
at index idx.
When -1 is given as idx, the attribute is inserted at the end.
an index
Insert bandwidth parameters into the array of bandwidths in msg
at index idx.
When -1 is given as idx, the bandwidth is inserted at the end.
an index
the bandwidth
Insert email into the array of emails in msg at index idx.
When -1 is given as idx, the email is inserted at the end.
an index
an email
Insert phone into the array of phone numbers in msg at index idx.
When -1 is given as idx, the phone is inserted at the end.
a phone index
a phone
Get the number of media descriptions in msg.
the number of media descriptions in msg.
Creates a new GstSdp.MIKEYMessage after parsing the key-mgmt attribute from a GstSdp.SDPMessage.
Get the number of phones in msg.
the number of phones in msg.
Remove the bandwidth information in msg at index idx.
the bandwidth index
Remove the media at idx from the array of medias in msg if found.
the media index
#GST_SDP_OK when the specified media is found at idx and removed, #GST_SDP_EINVAL otherwise.
Replace the attribute in msg at index idx with attr.
the index
Replace the bandwidth information in msg at index idx with bw.
the bandwidth index
the bandwidth
Replace the email in msg at index idx with email.
an email index
an email
Replace the phone number in msg at index idx with phone.
a phone index
a phone
Configure the SDP connection in msg with the given parameters.
the type of network. "IN" is defined to have the meaning "Internet".
the type of address.
the address
the time to live of the address
the number of layers
Adds the encryption information to msg.
the encryption type
the encryption data
Configure the SDP origin in msg with the given parameters.
the user name
a session id
a session version
a network type
an address type
an address
#GST_SDP_OK.
Get the number of time information entries in msg.
the number of time information entries in msg.
Free all resources allocated in msg. msg should not be used anymore after
this function. This function should be used when msg was allocated on the
stack and initialized with gst_sdp_message_init().
Get the number of time zone information entries in msg.
the number of time zone information entries in msg.
Staticas_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.
the uri scheme
StaticinitInitialize msg so that its contents are as if it was freshly allocated
with gst_sdp_message_new(). This function is mostly used to initialize a message
allocated on the stack. gst_sdp_message_uninit() undoes this operation.
When this function is invoked on newly allocated data (with malloc or on the stack), its contents should be set to 0 before calling this function.
StaticnewAllocate a new GstSDPMessage and store the result in msg.
Staticnew_Parse text and create a new SDPMessage from these.
A dynamically allocated string representing the SDP description
Staticparse_Parse the contents of size bytes pointed to by data and store the result in
msg.
the start of the buffer
the result GstSdp.SDPMessage
Staticparse_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
the start of the uri
the result GstSdp.SDPMessage
The GstSDPMessage helper functions makes it easy to parse and create SDP messages.