Use of "on-sending-rtcp" signal

Philippe Lalevée lalevee at emse.fr
Sat Jan 19 16:06:51 UTC 2019


Hello
I still have problems when using on-sending-rtcp/on-receiving signals (I 
would like to send RTCP packets of APP type).

After having configured callbacks both for these signals (on the 
rtpsession object as mentioned by Sebastian) and for probes in rtcp 
pads, I have the following behavior on the talker side: in the two 
callbacks, I only have RR and SDES packets, and never SR packets, while 
I see SR packets with the probe callback, and whereas I see them in the 
listener side in the "on_receiving_rtcp" callback. Symmetrically, I have 
the same problem on the listener side.

Another problem is that APP packets are not transmitted from the talker 
to the listener. Here is shortened the sequence of instructions called 
in the on-sending-rtcp callback function:
- gst_rtcp_buffer_map(buffer, GST_MAP_READWRITE, &rtcp)
- gst_rtcp_buffer_add_packet(&rtcp, GST_RTCP_TYPE_APP, &packet)
- gst_rtcp_packet_app_set_subtype(&packet, subtype)
- gst_rtcp_packet_app_set_ssrc(&packet, ssrc)
- gst_rtcp_packet_app_set_name(&packet, name)
- gst_rtcp_packet_app_set_data_length (&packet, len)
- data = gst_rtcp_packet_app_get_data(&packet)
- GST_WRITE_UINT32_BE(data, value)
- ...
- return TRUE

Do I have to do something special at the end of the function, before the 
return instruction, for the packet to be taken into account? otherwise 
what could be the problem?

Thank you for your help
Philippe Lalevée


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190119/93dae148/attachment.html>


More information about the gstreamer-devel mailing list