gstsdp.sdpmedia
Module for [SDPMedia] class
class SDPMedia
Types 1
classSDPMedia
The contents of the SDP "m=" field with all related fields.
Fields
GstSDPMedia _cInstanceMethods
void * _cPtr() nothrowuint port() @property nothrowGet `port` field. Returns: the transport port to which the media stream will be sentvoid port(uint propval) @property nothrowSet `port` field. Params: propval = the transport port to which the media stream will be sentuint numPorts() @property nothrowGet `numPorts` field. Returns: the number of ports or -1 if only one port was specifiedvoid numPorts(uint propval) @property nothrowSet `numPorts` field. Params: propval = the number of ports or -1 if only one port was specifiedvoid proto(string propval) @property nothrowSet `proto` field. Params: propval = the transport protocolvoid information(string propval) @property nothrowSet `information` field. Params: propval = the media titlegstsdp.types.SDPResult addAttribute(string key, string value = null) nothrowAdd the attribute with key and value to media.gstsdp.types.SDPResult addBandwidth(string bwtype, uint bandwidth) nothrowAdd the bandwidth information with bwtype and bandwidth to media.gstsdp.types.SDPResult addConnection(string nettype, string addrtype, string address, uint ttl, uint addrNumber) nothrowAdd the given connection parameters to media.string asText() nothrowConvert the contents of media to a text string. Returns: A dynamically allocated string representing the media.uint attributesLen() nothrowGet the number of attribute fields in media. Returns: the number of attributes in media.gstsdp.types.SDPResult attributesToCaps(gst.caps.Caps caps) nothrowMapping of attributes of #GstSDPMedia to #GstCapsuint bandwidthsLen() nothrowGet the number of bandwidth fields in media. Returns: the number of bandwidths in media.uint connectionsLen() nothrowGet the number of connection fields in media. Returns: the number of connections in media.gstsdp.types.SDPResult copy(out gstsdp.sdpmedia.SDPMedia copy) nothrowAllocate a new copy of media and store the result in copy. The value in copy should be release with gst_sdp_media_free function.uint formatsLen() nothrowGet the number of formats in media. Returns: the number of formats in media.gstsdp.sdpattribute.SDPAttribute getAttribute(uint idx) nothrowGet the attribute at position idx in media.gstsdp.sdpbandwidth.SDPBandwidth getBandwidth(uint idx) nothrowGet the bandwidth at position idx in media.gstsdp.sdpconnection.SDPConnection getConnection(uint idx) nothrowGet the connection at position idx in media.gstsdp.sdpkey.SDPKey getKey() nothrowGet the encryption information from media. Returns: a #GstSDPKey.uint getNumPorts() nothrowGet the number of ports for media. Returns: the number of ports for media.string getProto() nothrowGet the transport protocol of media Returns: the transport protocol of media.gstsdp.types.SDPResult insertAttribute(int idx, gstsdp.sdpattribute.SDPAttribute attr) nothrowInsert the attribute to media at idx. When idx is -1, the attribute is appended.gstsdp.types.SDPResult insertBandwidth(int idx, gstsdp.sdpbandwidth.SDPBandwidth bw) nothrowInsert the bandwidth information to media at idx. When idx is -1, the bandwidth is appended.gstsdp.types.SDPResult insertConnection(int idx, gstsdp.sdpconnection.SDPConnection conn) nothrowInsert the connection information to media at idx. When idx is -1, the connection is appended.gstsdp.types.SDPResult insertFormat(int idx, string format) nothrowInsert the format information to media at idx. When idx is -1, the format is appended.gstsdp.types.SDPResult parseKeymgmt(out gstsdp.mikeymessage.MIKEYMessage mikey) nothrowCreates a new #GstMIKEYMessage after parsing the key-mgmt attribute from a #GstSDPMedia.gstsdp.types.SDPResult removeBandwidth(uint idx) nothrowRemove the bandwidth information in media at idx.gstsdp.types.SDPResult removeConnection(uint idx) nothrowRemove the connection information in media at idx.gstsdp.types.SDPResult replaceAttribute(uint idx, gstsdp.sdpattribute.SDPAttribute attr) nothrowReplace the attribute in media at idx with attr.gstsdp.types.SDPResult replaceBandwidth(uint idx, gstsdp.sdpbandwidth.SDPBandwidth bw) nothrowReplace the bandwidth information in media at idx with bw.gstsdp.types.SDPResult replaceConnection(uint idx, gstsdp.sdpconnection.SDPConnection conn) nothrowReplace the connection information in media at idx with conn.gstsdp.types.SDPResult replaceFormat(uint idx, string format) nothrowReplace the format information in media at idx with format.gstsdp.types.SDPResult setInformation(string information) nothrowSet the media information of media to information.gstsdp.types.SDPResult setKey(string type, string data) nothrowAdds the encryption information to media.gstsdp.types.SDPResult setPortInfo(uint port, uint numPorts) nothrowSet the port information in media.gstsdp.types.SDPResult setProto(string proto) nothrowSet the media transport protocol of media to proto.gstsdp.types.SDPResult uninit() nothrowFree all resources allocated in media. media should not be used anymore after this function. This function should be used when media was allocated on the stack and initialized with [gstsdp.sdpmedia...gstsdp.types.SDPResult init_(out gstsdp.sdpmedia.SDPMedia media) static nothrowInitialize media so that its contents are as if it was freshly allocated with [gstsdp.sdpmedia.SDPMedia.new_]. This function is mostly used to initialize a media allocated on the stack. [gstsdp.sdp...gstsdp.types.SDPResult new_(out gstsdp.sdpmedia.SDPMedia media) static nothrowAllocate a new GstSDPMedia and store the result in media.gstsdp.types.SDPResult setMediaFromCaps(gst.caps.Caps caps, out gstsdp.sdpmedia.SDPMedia media) static nothrowMapping of caps to SDP fields: