|
gstreamermm
1.10.0
|
The contents of the SDP "m=" field with all related fields. More...
#include <gstreamermm/sdpmessage.h>
Public Member Functions | |
| Media () | |
| Media (const Media& other) | |
| Media (Media&& other) | |
| virtual | ~Media () |
| GstSDPMedia* | gobj () |
| const GstSDPMedia* | gobj () const |
| Glib::ustring | as_text () const |
| Convert the contents of media to a text string. More... | |
| Glib::ustring | get_media () const |
| Get the media description of media. More... | |
| Result | set_media (const Glib::ustring& med) |
| Set the media description of media to med. More... | |
| guint | get_port () const |
| Get the port number for media. More... | |
| guint | get_num_ports () const |
| Get the number of ports for media. More... | |
| Result | set_port_info (guint port, guint num_ports) |
| Set the port information in media. More... | |
| Glib::ustring | get_proto () const |
| Get the transport protocol of media. More... | |
| Result | set_proto (const Glib::ustring& proto) |
| Set the media transport protocol of media to proto. More... | |
| guint | formats_len () const |
| Get the number of formats in media. More... | |
| Glib::ustring | get_format (guint idx) const |
| Get the format information at position idx in media. More... | |
| Result | insert_format (gint idx, const Glib::ustring& format) |
| Insert the format information to media at idx. More... | |
| Result | replace_format (guint idx, const Glib::ustring& format) |
| Replace the format information in media at idx with format. More... | |
| Result | remove_format (guint idx) |
| Remove the format information in media at idx. More... | |
| Result | add_format (const Glib::ustring& format) |
| Add the format information to media. More... | |
| Glib::ustring | get_information () const |
| Get the information of media. More... | |
| Result | set_information (const Glib::ustring& information) |
| Set the media information of media to information. More... | |
| guint | connections_len () const |
| Get the number of connection fields in media. More... | |
| Result | remove_connection (guint idx) |
| Remove the connection information in media at idx. More... | |
| Result | add_connection (const Glib::ustring& nettype, const Glib::ustring& addrtype, const Glib::ustring& address, guint ttl, guint addr_number) |
| Add the given connection parameters to media. More... | |
| guint | bandwidths_len () const |
| Get the number of bandwidth fields in media. More... | |
| Result | remove_bandwidth (guint idx) |
| Remove the bandwidth information in media at idx. More... | |
| Result | add_bandwidth (const Glib::ustring& bwtype, guint bandwith) |
| Add the bandwidth information with bwtype and bandwith to media. More... | |
| Gst::SDP::Key | get_key () const |
| Get the encryption information from media. More... | |
| Result | set_key (const Glib::ustring& key, const Glib::ustring& data) |
| Adds the encryption information to media. More... | |
| guint | attributes_len () const |
| Get the number of attribute fields in media. More... | |
| Glib::ustring | get_attribute_val (const Glib::ustring& key) const |
| Get the first attribute value for key in media. More... | |
| Glib::ustring | get_attribute_val (const Glib::ustring& key, guint nth) const |
| Get the nth attribute value for key in media. More... | |
| Result | remove_attribute (guint idx) |
| Remove the attribute in media at idx. More... | |
| Result | add_attribute (const Glib::ustring& key, const Glib::ustring& value) |
| Add the attribute with key and value to media. More... | |
| Glib::RefPtr< Gst::Caps > | get_caps_from_media (int pt) const |
| Mapping of caps from SDP fields: More... | |
| Result | attributes_to_caps (const Glib::RefPtr< Gst::Caps >& caps) const |
| Mapping of attributes of Gst::SDPMedia to Gst::Caps. More... | |
Protected Attributes | |
| GstSDPMedia* | gobject_ = nullptr |
The contents of the SDP "m=" field with all related fields.
| Gst::SDP::Media::Media | ( | ) |
| Gst::SDP::Media::Media | ( | const Media& | other | ) |
| Gst::SDP::Media::Media | ( | Media&& | other | ) |
|
virtual |
| Result Gst::SDP::Media::add_attribute | ( | const Glib::ustring & | key, |
| const Glib::ustring & | value | ||
| ) |
Add the attribute with key and value to media.
| key | A key. |
| value | A value. |
| Result Gst::SDP::Media::add_bandwidth | ( | const Glib::ustring & | bwtype, |
| guint | bandwith | ||
| ) |
Add the bandwidth information with bwtype and bandwith to media.
| bwtype | The bandwidth modifier type. |
| bandwith | The bandwidth in kilobits per second. |
| Result Gst::SDP::Media::add_connection | ( | const Glib::ustring & | nettype, |
| const Glib::ustring & | addrtype, | ||
| const Glib::ustring & | address, | ||
| guint | ttl, | ||
| guint | addr_number | ||
| ) |
Add the given connection parameters to media.
| nettype | The type of network. "IN" is defined to have the meaning "Internet". |
| addrtype | The type of address. |
| address | The address. |
| ttl | The time to live of the address. |
| addr_number | The number of layers. |
| Result Gst::SDP::Media::add_format | ( | const Glib::ustring & | format | ) |
Add the format information to media.
| format | The format. |
| Glib::ustring Gst::SDP::Media::as_text | ( | ) | const |
Convert the contents of media to a text string.
| guint Gst::SDP::Media::attributes_len | ( | ) | const |
Get the number of attribute fields in media.
| guint Gst::SDP::Media::bandwidths_len | ( | ) | const |
Get the number of bandwidth fields in media.
| guint Gst::SDP::Media::connections_len | ( | ) | const |
Get the number of connection fields in media.
| guint Gst::SDP::Media::formats_len | ( | ) | const |
Get the number of formats in media.
| Glib::ustring Gst::SDP::Media::get_attribute_val | ( | const Glib::ustring & | key | ) | const |
Get the first attribute value for key in media.
| key | A key. |
| Glib::ustring Gst::SDP::Media::get_attribute_val | ( | const Glib::ustring & | key, |
| guint | nth | ||
| ) | const |
Get the nth attribute value for key in media.
| key | A key. |
| nth | An index. |
| Glib::RefPtr<Gst::Caps> Gst::SDP::Media::get_caps_from_media | ( | int | pt | ) | const |
| Glib::ustring Gst::SDP::Media::get_format | ( | guint | idx | ) | const |
Get the format information at position idx in media.
| idx | An index. |
| Glib::ustring Gst::SDP::Media::get_information | ( | ) | const |
Get the information of media.
| Gst::SDP::Key Gst::SDP::Media::get_key | ( | ) | const |
Get the encryption information from media.
| Glib::ustring Gst::SDP::Media::get_media | ( | ) | const |
Get the media description of media.
| guint Gst::SDP::Media::get_num_ports | ( | ) | const |
Get the number of ports for media.
| guint Gst::SDP::Media::get_port | ( | ) | const |
Get the port number for media.
| Glib::ustring Gst::SDP::Media::get_proto | ( | ) | const |
Get the transport protocol of media.
|
inline |
|
inline |
| Result Gst::SDP::Media::insert_format | ( | gint | idx, |
| const Glib::ustring & | format | ||
| ) |
Insert the format information to media at idx.
When idx is -1, the format is appended.
| idx | An index. |
| format | The format. |
| Result Gst::SDP::Media::remove_attribute | ( | guint | idx | ) |
Remove the attribute in media at idx.
| idx | An index. |
| Result Gst::SDP::Media::remove_bandwidth | ( | guint | idx | ) |
Remove the bandwidth information in media at idx.
| idx | An index. |
| Result Gst::SDP::Media::remove_connection | ( | guint | idx | ) |
Remove the connection information in media at idx.
| idx | An index. |
| Result Gst::SDP::Media::remove_format | ( | guint | idx | ) |
Remove the format information in media at idx.
| idx | An index. |
| Result Gst::SDP::Media::replace_format | ( | guint | idx, |
| const Glib::ustring & | format | ||
| ) |
Replace the format information in media at idx with format.
| idx | An index. |
| format | The format. |
| Result Gst::SDP::Media::set_information | ( | const Glib::ustring & | information | ) |
Set the media information of media to information.
| information | The media information. |
| Result Gst::SDP::Media::set_key | ( | const Glib::ustring & | key, |
| const Glib::ustring & | data | ||
| ) |
Adds the encryption information to media.
| key | The encryption type. |
| data | The encryption data. |
| Result Gst::SDP::Media::set_media | ( | const Glib::ustring & | med | ) |
Set the media description of media to med.
| med | The media description. |
| Result Gst::SDP::Media::set_port_info | ( | guint | port, |
| guint | num_ports | ||
| ) |
Set the port information in media.
| port | The port number. |
| num_ports | The number of ports. |
| Result Gst::SDP::Media::set_proto | ( | const Glib::ustring & | proto | ) |
Set the media transport protocol of media to proto.
| proto | The media transport protocol. |
|
protected |
1.8.13