Message
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" ,  free_function = "g_boxed_free" ,  type_id = "gst_sdp_message_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "SDPMessage" ) ]
public class Message
  [ Compact ]
[ GIR ( name = "SDPMessage" ) ]
public class Message
The GstSDPMessage helper functions makes it easy to parse and create SDP messages.
Namespace: Gst.SDP
  
  Package: gstreamer-sdp-1.0
  
  Content:
Static methods:
- public static Result @new (out Message msg)
      
      
 - public static string as_uri (string scheme, Message msg)
      
      
 - public static Result new_from_text (string text, out Message msg)
      
      
 - public static Result parse_buffer (uint8[] data, Message msg)
      
      
 - public static Result parse_uri (string uri, Message msg)
      
      
 
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 specified bandwidth information to this .
 - public Result add_email (string email)
      
      Add
emailto the list of emails in this. - public Result add_media (Media media)
      
      Adds
mediato the array of medias in this. - public Result add_phone (string phone)
      
      Add
phoneto the list of phones in this. - public Result add_time (string start, string stop, string[] repeat)
      
      Add time information
startandstopto this. - public Result add_zone (string adj_time, string typed_time)
      
      Add time zone information to this.
 - public string as_text ()
      
      Convert the contents of this to a text string.
 - public uint attributes_len ()
      
      Get the number of attributes in this.
 - public Result attributes_to_caps (Caps caps)
      
      Mapping of attributes of Message to Caps
 - public uint bandwidths_len ()
      
      Get the number of bandwidth information in this .
 - public Result copy (out Message copy)
      
      Allocate a new copy of this and store the result in
copy. - public Result dump ()
      
      Dump the parsed contents of this to stdout.
 - public uint emails_len ()
      
      Get the number of emails 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 with key
keyin this. - public unowned string? get_attribute_val_n (string key, uint nth)
      
      Get the
nthattribute with keykeyin this. - public unowned Bandwidth? get_bandwidth (uint idx)
      
      Get the bandwidth at index
idxfrom this. - public unowned Connection? get_connection ()
      
      Get the connection of this.
 - public unowned string get_email (uint idx)
      
      Get the email with number
idxfrom this. - public unowned string get_information ()
      
      Get the information in this.
 - public unowned Key? get_key ()
      
      Get the encryption information from this.
 - public unowned Media? get_media (uint idx)
      
      Get the media description at index
idxin this. - public unowned Origin? get_origin ()
      
      Get the origin of this.
 - public unowned string get_phone (uint idx)
      
      Get the phone with number
idxfrom this. - public unowned string get_session_name ()
      
      Get the session name in this.
 - public unowned Time? get_time (uint idx)
      
      Get time information with index
idxfrom this. - public unowned string get_uri ()
      
      Get the URI in this.
 - public unowned string get_version ()
      
      Get the version in this.
 - public unowned Zone? get_zone (uint idx)
      
      Get time zone information with index
idxfrom this. - public Result init ()
      
      
 - public Result insert_attribute (int idx, Attribute attr)
      
      Insert attribute into the array of attributes in this at index
idx. - public Result insert_bandwidth (int idx, Bandwidth bw)
      
      Insert bandwidth parameters into the array of bandwidths in this at index
idx. - public Result insert_email (int idx, string email)
      
      Insert
emailinto the array of emails in this at indexidx. - public Result insert_phone (int idx, string phone)
      
      Insert
phoneinto the array of phone numbers in this at indexidx. - public Result insert_time (int idx, Time t)
      
      Insert time parameters into the array of times in this at index
idx. - public Result insert_zone (int idx, Zone zone)
      
      Insert zone parameters into the array of zones in this at index
idx. - public uint medias_len ()
      
      Get the number of media descriptions in this .
 - public Result parse_keymgmt (out MIKEYMessage mikey)
      
      Creates a new MIKEYMessage after parsing the key-mgmt attribute from a Message.
 - public uint phones_len ()
      
      Get the number of phones in this.
 - public Result remove_attribute (uint idx)
      
      Remove the attribute in this at index
idx. - public Result remove_bandwidth (uint idx)
      
      Remove the bandwidth information in this at index
idx. - public Result remove_email (uint idx)
      
      Remove the email in this at index
idx. - public Result remove_media (uint idx)
      
      Remove the media at
idxfrom the array of medias in this if found. - public Result remove_phone (uint idx)
      
      Remove the phone number in this at index
idx. - public Result remove_time (uint idx)
      
      Remove the time information in this at index
idx. - public Result remove_zone (uint idx)
      
      Remove the zone information in this at index
idx. - public Result replace_attribute (uint idx, Attribute attr)
      
      Replace the attribute in this at index
idxwithattr. - public Result replace_bandwidth (uint idx, Bandwidth bw)
      
      Replace the bandwidth information in this at index
idxwithbw. - public Result replace_email (uint idx, string email)
      
      Replace the email in this at index
idxwithemail. - public Result replace_phone (uint idx, string phone)
      
      Replace the phone number in this at index
idxwithphone. - public Result replace_time (uint idx, Time t)
      
      Replace the time information in this at index
idxwitht. - public Result replace_zone (uint idx, Zone zone)
      
      Replace the zone information in this at index
idxwithzone. - public Result set_connection (string nettype, string addrtype, string address, uint ttl, uint addr_number)
      
      Configure the SDP connection in this with the given parameters.
 - public Result set_information (string information)
      
      Set the information in this.
 - public Result set_key (string type, string data)
      
      Adds the encryption information to this.
 - public Result set_origin (string username, string sess_id, string sess_version, string nettype, string addrtype, string addr)
      
      Configure the SDP origin in this with the given parameters.
 - public Result set_session_name (string session_name)
      
      Set the session name in this.
 - public Result set_uri (string uri)
      
      Set the URI in this.
 - public Result set_version (string version)
      
      Set the version in this.
 - public uint times_len ()
      
      Get the number of time information entries in this.
 - public Result uninit ()
      
      Free all resources allocated in this.
 - public uint zones_len ()
      
      Get the number of time zone information entries in this.
 
Fields:
- public unowned Array<void*> attributes
      
      
 - public unowned Array<void*> bandwidths
      
      
 - public Connection connection
      
      
 - public unowned Array<void*> emails
      
      
 - public unowned string information
      
      
 - public Key key
      
      
 - public unowned Array<void*> medias
      
      
 - public Origin origin
      
      
 - public unowned Array<void*> phones
      
      
 - public unowned string session_name
      
      
 - public unowned Array<void*> times
      
      
 - public unowned string uri
      
      
 - public unowned string version
      
      
 - public unowned Array<void*> zones