Media
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ GIR ( name = "SDPMedia" ) ]
public struct Media
  [ GIR ( name = "SDPMedia" ) ]
public struct Media
The contents of the SDP "m=" field with all related fields.
Namespace: Gst.SDP
  
  Package: gstreamer-sdp-1.0
  
  Content:
Static methods:
- public static Result @new (out Media media)
      
      Allocate a new GstSDPMedia and store the result in
media. - public static Result set_media_from_caps (Caps caps, out Media media)
      
      Mapping of caps to SDP fields:
 
Methods:
- public Result add_attribute (string key, string? value)
      
      Add the attribute with
keyandvalueto this. - public Result add_bandwidth (string bwtype, uint bandwidth)
      
      Add the bandwidth information with
bwtypeandbandwidthto this. - public Result add_connection (string nettype, string addrtype, string address, uint ttl, uint addr_number)
      
      Add the given connection parameters to this .
 - public Result add_format (string format)
      
      Add the format information to this.
 - public string as_text ()
      
      Convert the contents of this to a text string.
 - public uint attributes_len ()
      
      Get the number of attribute fields in this .
 - public Result attributes_to_caps (Caps caps)
      
      Mapping of attributes of Media to Caps
 - public uint bandwidths_len ()
      
      Get the number of bandwidth fields in this .
 - public uint connections_len ()
      
      Get the number of connection fields in this .
 - public Result copy (out Media copy)
      
      Allocate a new copy of this and store the result in
copy. - public uint formats_len ()
      
      Get the number of formats in this.
 - public Result free ()
      
      Free all resources allocated by this.
 - public unowned Attribute? get_attribute (uint idx)
      
      Get the attribute at position
idxin this. - public unowned string? get_attribute_val (string key)
      
      Get the first attribute value for
keyin this. - public unowned string? get_attribute_val_n (string key, uint nth)
      
      Get the
nthattribute value forkeyin this. - public unowned Bandwidth? get_bandwidth (uint idx)
      
      Get the bandwidth at position
idxin this. - public Caps? get_caps_from_media (int pt)
      
      Mapping of caps from SDP fields:
 - public unowned Connection? get_connection (uint idx)
      
      Get the connection at position
idxin this. - public unowned string get_format (uint idx)
      
      Get the format information at position
idxin this. - public unowned string get_information ()
      
      Get the information of this
 - public unowned Key? get_key ()
      
      Get the encryption information from this.
 - public unowned string get_media ()
      
      Get the media description of this.
 - public uint get_num_ports ()
      
      Get the number of ports for this.
 - public uint get_port ()
      
      Get the port number for this.
 - public unowned string get_proto ()
      
      Get the transport protocol of this
 - public Result init ()
      
      Initialize
mediaso that its contents are as if it was freshly allocated with @new. - public Result insert_attribute (int idx, Attribute attr)
      
      Insert the attribute to this at
idx. - public Result insert_bandwidth (int idx, Bandwidth bw)
      
      Insert the bandwidth information to this at
idx. - public Result insert_connection (int idx, Connection conn)
      
      Insert the connection information to this at
idx. - public Result insert_format (int idx, string format)
      
      Insert the format information to this at
idx. - public Result parse_keymgmt (out MIKEYMessage mikey)
      
      Creates a new MIKEYMessage after parsing the key-mgmt attribute from a Media.
 - public Result remove_attribute (uint idx)
      
      Remove the attribute in this at
idx. - public Result remove_bandwidth (uint idx)
      
      Remove the bandwidth information in this at
idx. - public Result remove_connection (uint idx)
      
      Remove the connection information in this at
idx. - public Result remove_format (uint idx)
      
      Remove the format information in this at
idx. - public Result replace_attribute (uint idx, Attribute attr)
      
      Replace the attribute in this at
idxwithattr. - public Result replace_bandwidth (uint idx, Bandwidth bw)
      
      Replace the bandwidth information in this at
idxwithbw. - public Result replace_connection (uint idx, Connection conn)
      
      Replace the connection information in this at
idxwithconn. - public Result replace_format (uint idx, string format)
      
      Replace the format information in this at
idxwithformat. - public Result set_information (string information)
      
      Set the media information of this to
information. - public Result set_key (string type, string data)
      
      Adds the encryption information to this.
 - public Result set_media (string med)
      
      Set the media description of this to
med. - public Result set_port_info (uint port, uint num_ports)
      
      Set the port information in this.
 - public Result set_proto (string proto)
      
      Set the media transport protocol of this to
proto. - public Result uninit ()
      
      Free all resources allocated in this.
 
Fields:
- public unowned string media
      
      
 - public uint port
      
      
 - public uint num_ports
      
      
 - public unowned string proto
      
      
 - public unowned Array<void*> fmts
      
      
 - public unowned string information
      
      
 - public unowned Array<void*> connections
      
      
 - public unowned Array<void*> bandwidths
      
      
 - public Key key
      
      
 - public unowned Array<void*> attributes