gstsdp.sdpmedia

Module for [SDPMedia] class

class SDPMedia

Types 1

The contents of the SDP "m=" field with all related fields.

Fields
GstSDPMedia _cInstance
Methods
void * _cPtr()
string media() @propertyGet `media` field. Returns: the media type
void media(string propval) @propertySet `media` field. Params: propval = the media type
uint port() @propertyGet `port` field. Returns: the transport port to which the media stream will be sent
void port(uint propval) @propertySet `port` field. Params: propval = the transport port to which the media stream will be sent
uint numPorts() @propertyGet `numPorts` field. Returns: the number of ports or -1 if only one port was specified
void numPorts(uint propval) @propertySet `numPorts` field. Params: propval = the number of ports or -1 if only one port was specified
string proto() @propertyGet `proto` field. Returns: the transport protocol
void proto(string propval) @propertySet `proto` field. Params: propval = the transport protocol
string information() @propertyGet `information` field. Returns: the media title
void information(string propval) @propertySet `information` field. Params: propval = the media title
gstsdp.sdpkey.SDPKey key() @propertyGet `key` field. Returns: the encryption key
gstsdp.types.SDPResult addAttribute(string key, string value = null)Add the attribute with key and value to media.
gstsdp.types.SDPResult addBandwidth(string bwtype, uint bandwidth)Add the bandwidth information with bwtype and bandwidth to media.
gstsdp.types.SDPResult addConnection(string nettype, string addrtype, string address, uint ttl, uint addrNumber)Add the given connection parameters to media.
gstsdp.types.SDPResult addFormat(string format)Add the format information to media.
string asText()Convert the contents of media to a text string. Returns: A dynamically allocated string representing the media.
uint attributesLen()Get the number of attribute fields in media. Returns: the number of attributes in media.
gstsdp.types.SDPResult attributesToCaps(gst.caps.Caps caps)Mapping of attributes of #GstSDPMedia to #GstCaps
uint bandwidthsLen()Get the number of bandwidth fields in media. Returns: the number of bandwidths in media.
uint connectionsLen()Get the number of connection fields in media. Returns: the number of connections in media.
gstsdp.types.SDPResult copy(out gstsdp.sdpmedia.SDPMedia copy)Allocate a new copy of media and store the result in copy. The value in copy should be release with gstsdpmedia_free function.
uint formatsLen()Get the number of formats in media. Returns: the number of formats in media.
gstsdp.sdpattribute.SDPAttribute getAttribute(uint idx)Get the attribute at position idx in media.
string getAttributeVal(string key)Get the first attribute value for key in media.
string getAttributeValN(string key, uint nth)Get the nth attribute value for key in media.
gstsdp.sdpbandwidth.SDPBandwidth getBandwidth(uint idx)Get the bandwidth at position idx in media.
gst.caps.Caps getCapsFromMedia(int pt)Mapping of caps from SDP fields:
gstsdp.sdpconnection.SDPConnection getConnection(uint idx)Get the connection at position idx in media.
string getFormat(uint idx)Get the format information at position idx in media.
string getInformation()Get the information of media Returns: the information of media.
gstsdp.sdpkey.SDPKey getKey()Get the encryption information from media. Returns: a #GstSDPKey.
string getMedia()Get the media description of media. Returns: the media description.
uint getNumPorts()Get the number of ports for media. Returns: the number of ports for media.
uint getPort()Get the port number for media. Returns: the port number of media.
string getProto()Get the transport protocol of media Returns: the transport protocol of media.
gstsdp.types.SDPResult insertAttribute(int idx, gstsdp.sdpattribute.SDPAttribute attr)Insert the attribute to media at idx. When idx is -1, the attribute is appended.
gstsdp.types.SDPResult insertBandwidth(int idx, gstsdp.sdpbandwidth.SDPBandwidth bw)Insert 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)Insert the connection information to media at idx. When idx is -1, the connection is appended.
gstsdp.types.SDPResult insertFormat(int idx, string format)Insert the format information to media at idx. When idx is -1, the format is appended.
gstsdp.types.SDPResult parseKeymgmt(out gstsdp.mikeymessage.MIKEYMessage mikey)Creates a new #GstMIKEYMessage after parsing the key-mgmt attribute from a #GstSDPMedia.
gstsdp.types.SDPResult removeAttribute(uint idx)Remove the attribute in media at idx.
gstsdp.types.SDPResult removeBandwidth(uint idx)Remove the bandwidth information in media at idx.
gstsdp.types.SDPResult removeConnection(uint idx)Remove the connection information in media at idx.
gstsdp.types.SDPResult removeFormat(uint idx)Remove the format information in media at idx.
gstsdp.types.SDPResult replaceAttribute(uint idx, gstsdp.sdpattribute.SDPAttribute attr)Replace the attribute in media at idx with attr.
gstsdp.types.SDPResult replaceBandwidth(uint idx, gstsdp.sdpbandwidth.SDPBandwidth bw)Replace the bandwidth information in media at idx with bw.
gstsdp.types.SDPResult replaceConnection(uint idx, gstsdp.sdpconnection.SDPConnection conn)Replace the connection information in media at idx with conn.
gstsdp.types.SDPResult replaceFormat(uint idx, string format)Replace the format information in media at idx with format.
gstsdp.types.SDPResult setInformation(string information)Set the media information of media to information.
gstsdp.types.SDPResult setKey(string type, string data)Adds the encryption information to media.
gstsdp.types.SDPResult setMedia(string med)Set the media description of media to med.
gstsdp.types.SDPResult setPortInfo(uint port, uint numPorts)Set the port information in media.
gstsdp.types.SDPResult setProto(string proto)Set the media transport protocol of media to proto.
gstsdp.types.SDPResult uninit()Free 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)Initialize 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)Allocate a new GstSDPMedia and store the result in media.
gstsdp.types.SDPResult setMediaFromCaps(gst.caps.Caps caps, out gstsdp.sdpmedia.SDPMedia media)Mapping of caps to SDP fields:
Constructors
this(void * ptr, Flag!"Take" take)