<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    While awaiting the response of Sebastian, please help me ;-)<br>
    because I could not <i>get the rtpsession object from the
      "internal-session" property on the rtpsession element</i>, I tried
    to intercept RTCP packets by setting a callback to sinks connected
    with RTCP streams, using:<br>
    <blockquote type="cite"><tt>gst_pad_add_probe(srcpad,
        GST_PAD_PROBE_TYPE_BUFFER,</tt><tt> (GstPadProbeCallback)
        rtcp_probe_cb, NULL, NULL);</tt><tt><br>
      </tt></blockquote>
    Is it the same as intercepting "on-{sending|receiving}-rtcp"
    signals?<br>
    <br>
    Thanks in advance,<br>
    Philippe<br>
    <br>
    <div class="moz-cite-prefix">Le 27/12/2018 à 15:49, Philippe Lalevée
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:260b3252-a40d-c30c-b6a5-ea564f8bd98d@emse.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      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>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <b>Philippe Lalevée</b><br>
      Directeur du campus GCP - Directeur du CMP<br>
      <b>Tél.</b> : 26715 (04 42 61 67 15) </div>
  </body>
</html>