<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
Thanks Sebastian for your reply.<br>
<br>
<div class="moz-cite-prefix">On 27/12/2018 at 10:23, Sebastian Dröge
wrote :<br>
</div>
<blockquote type="cite"
cite="mid:3f9cad6ce2aaddbbb7938fac77b3f13599c074af.camel@centricular.com">
<pre class="moz-quote-pre" wrap="">You can get the rtpsession object from the "internal-session" property
on the rtpsession element.</pre>
</blockquote>
Is that piece of code correct to associate a callback with the
signal?<br>
<blockquote><tt>static gboolean on_sending_rtcp_cb(GstElement *bin,
guint sessid, GstBuffer *buffer, gboolean early,<br>
GstElement *what_is_it)<br>
GstElement *rtpbin;<br>
GObject *session;<br>
RTPSession *rtpsession;<br>
...<br>
g_signal_emit_by_name(rtpbin, "get-internal-session", 0,
&session);<br>
g_object_get(session, "internal-session", &rtpsession);<br>
g_signal_connect(rtpsession, "on-sending-rtcp",
G_CALLBACK(on_sending_rtcp_cb), NULL);<br>
...<br>
</tt></blockquote>
Else could you give (me) an example of how to do that? <br>
Best regards<br>
Philippe<br>
<br>
<div class="moz-signature">-- <br>
<b>Philippe Lalevée</b>, Mines Saint-Etienne<br>
</div>
</body>
</html>