Top | ![]() |
![]() |
![]() |
![]() |
gboolean jingle_media_rtp_set_local_media_description (WockyJingleMediaRtp *self
,WockyJingleMediaDescription *md
,gboolean ready
,GError **error
);
Sets or updates the media description (codecs, feedback messages, etc) for
self
.
self |
a content in an RTP session |
|
md |
new media description for this content. |
[transfer full] |
ready |
whether the codecs can regarded as ready to sent from now on |
|
error |
used to return a |
WockyJingleMediaDescription *
wocky_jingle_media_rtp_get_remote_media_description
(WockyJingleMediaRtp *self
);
Gets the current remote media description, if known. The “remote-media-description” signal is emitted when this value changes.
the current remote media description, which may be
NULL
for outgoing calls until it is first received.
[transfer none]
WockyJingleCodec * jingle_media_rtp_codec_new (guint id
,const gchar *name
,guint clockrate
,guint channels
,GHashTable *params
);
Creates a new structure describing a codec, suitable for including in a WockyJingleMediaDescription.
id |
a codec ID, as specified in tables 4 and 5 of RFC 3551. |
|
name |
the codec's name. This is optional if |
[allow-none] |
clockrate |
the clock rate for this codec, or 0 to not specify a clock rate. |
|
channels |
the number of channels, or 0 to leave this unspecified (which the peer should interpret as the default value, 1). |
|
params |
parameters for this codec. This is referenced, not copied, so you should avoid modifying this parameter after calling this function. |
[element-type utf8 utf8][transfer none][allow-none] |
gboolean jingle_media_rtp_compare_codecs (GList *old
,GList *new
,GList **changed
,GError **e
);
WockyJingleMediaDescription *
wocky_jingle_media_description_new (void
);
Allocates a new media description. You should fill in all the fields yourself.
void
wocky_jingle_media_description_free (WockyJingleMediaDescription *md
);
WockyJingleMediaDescription *
wocky_jingle_media_description_copy (WockyJingleMediaDescription *md
);
Performs a deep copy of a media description.
WockyJingleRtpHeaderExtension * wocky_jingle_rtp_header_extension_new (guint id
,WockyJingleContentSenders senders
,const gchar *uri
);
void
wocky_jingle_rtp_header_extension_free
(WockyJingleRtpHeaderExtension *hdrext
);
WockyJingleFeedbackMessage * wocky_jingle_feedback_message_new (const gchar *type
,const gchar *subtype
);
void
wocky_jingle_feedback_message_free (WockyJingleFeedbackMessage *fb
);
void
wocky_jingle_media_description_simplify
(WockyJingleMediaDescription *md
);
Removes duplicated Feedback message and put them in the global structure
This function will iterate over every codec in a description and look for feedback messages that are exactly the same in every codec and will instead put the in the list in the description and remove them from the childs. This limits the amount of duplication in the resulting XML.
typedef struct { guint id; gchar *name; guint clockrate; guint channels; GHashTable *params; guint trr_int; GList *feedback_msgs; } WockyJingleCodec;
typedef struct { gchar *type; gchar *subtype; } WockyJingleFeedbackMessage;
typedef struct { guint id; WockyJingleContentSenders senders; gchar *uri; } WockyJingleRtpHeaderExtension;
typedef struct { GList *codecs; GList *hdrexts; guint trr_int; GList *feedback_msgs; } WockyJingleMediaDescription;
Media description for a WockyJingleMediaRtp content.
GList * |
a list of WockyJingleCodecs, allocated with
|
|
GList * |
a list of WockyJingleRtpHeaderExtensions, allocated with
|
|
guint |
number of milliseconds between regular RTCP reports |
|
GList * |
a list of WockyJingleFeedbackMessages, allocated
with |
“media-type”
property“media-type” guint
Media type.
Flags: Read / Write / Construct Only
Default value: 0
“remote-mute”
property“remote-mute” gboolean
TRUE if the peer has muted this stream.
Flags: Read / Write
Default value: FALSE
“remote-media-description”
signalvoid user_function (WockyJingleMediaRtp *content, gpointer md, gpointer user_data)
Emitted when the remote media description is received or subsequently updated.
content |
the RTP content |
|
md |
||
user_data |
user data set when the signal handler was connected. |
Flags: Run Last