<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Le 19/01/2019 à 20:13, Sebastian Dröge a écrit :<br>
    <blockquote type="cite"
cite="mid:e7a3a2c27fc7c2fe9d90f5c200713327d4ae57fe.camel@centricular.com">
      <pre class="moz-quote-pre" wrap="">On Sat, 2019-01-19 at 11:38 -0500, Nicolas Dufresne wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Le samedi 19 janvier 2019 à 17:06 +0100, Philippe Lalevée a écrit :
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Hello I still have problems when using on-sending-rtcp/on-receiving
signals (I would like to send RTCP packets of APP type). 
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
The RTPSession API isn't public, I'm not sure it is correct to use
this from an application. I believe you should better describe what
you are trying to do.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
The rtpsession API is public, i.e. the signals and properties on the
"internal-session" object of the rtpsession GStreamer element. People
are using these in their applications for various things :)

And the signals Philippe are mentioned can be used for including custom
RTCP packets or receiving them. Not sure what the problem is he's
running into though, a testcase (with code) to run and show the problem
would probably help. But it seems he solved it already if I understand
the last message correctly.
</pre>
    </blockquote>
    <div class="moz-signature">Unfortunately, that is not the case...
      What is solved is the transmission of APP packets from the
      listener to the talker, but not from the talker to the listener.
      My code is based on
gst-plugins-good/tests/examples/rtp/{client-PCMA.c,server-alsasrc-PCMA.c},
      see included test-rtcp.tar.xz. After doing make, on a machine B,
      execute './gst_recv IP_A, and on the machine A, execute ./gst_send
      <file>.mp3 IP_B.<br>
      <br>
      Traces on machine A :
      <blockquote type="cite">>on_sending_rtcp:
        (sess:1823933232,early:0,size:60)<br>
        > #packets: 2<br>
        >  packet: <b><font color="#ff0000">type 201, RR ssrc:
            77451595</font></b><br>
        >  packet: type 202<br>
        > packet added: #packets: 3<br>
        > buffer unmap...<br>
        <br>
        <on_receiving_rtcp: (sess:1823933232,size:124)<br>
        < #packets: 3<br>
        <  packet: <font color="#009900"><b>type 201, </b></font><b><font
            color="#009900">RR ssrc: 3024040777</font></b><br>
        <  packet: type 202<br>
        <  <b>packet: type 204</b><br>
        < **** packets to process... soon ****<br>
      </blockquote>
      In bold, we can see that an APP packet is received.<br>
      <br>
      Traces on machine B:<br>
      <blockquote type="cite"><on_receiving_rtcp:
        (sess:475169152,size:80)<br>
        < #packets: 2<br>
        <  packet: <b><font color="#ff0000">type 200, SR </font></b><b><font
            color="#ff0000">ssrc: 4086197064</font></b>, rtp ts:
        4010357965<br>
        <  packet: type 202<br>
        < **** packets to process... soon ****<br>
        <br>
        >on_sending_rtcp: (sess:475169152,early:0,size:80)<br>
        > #packets: 2<br>
        >  packet: <font color="#009900"><b>type 201, </b><b>RR
            ssrc: 3024040777</b></font><br>
        >  packet: type 202<br>
        > packet added: #packets: 3<br>
        > buffer unmap...<br>
      </blockquote>
      Traces in green show that transmission is OK from the listener
      (which sends an RR packet) to the talker (which receives the same
      RR packet). But, as you can see in red, the talker sends an RR
      packet (that is strange) while the listener receives an SR packet
      with different data, and there is no APP packet.<br>
      The questions are then why the talker sends an RR packet here ?
      and why the listener receives an SR reports ?<br>
      Thanks<br>
      Philippe<br>
      <div class="moz-signature">
        <div class="moz-signature">
          <div class="moz-signature">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <title></title>
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
          </div>
        </div>
      </div>
    </div>
  </body>
</html>