How to use rtcp xr

51 views
Skip to first unread message

胡彗星

unread,
Apr 21, 2025, 1:02:17 AM4/21/25
to discuss-webrtc
loginfo:

[2025-04-17 20:44:59.340] [rtc] [info] [28600046] [rtc_log_sink.cc:15] [OnLogMessage] (video_receive_stream2.cc:263): VideoReceiveStream2: {decoders: [{payload_type: 96, payload_name: H264, codec_params: {level-asymmetry-allowed: 1, packetization-mode: 1, profile-level-id: 640c33}}, {payload_type: 98, payload_name: H264, codec_params: {level-asymmetry-allowed: 1, packetization-mode: 1, profile-level-id: 42e033}}], rtp: {remote_ssrc: 854861656, local_ssrc: 1, rtcp_mode: RtcpMode::kReducedSize, rtcp_xr: {receiver_reference_time_report: on}, transport_cc: on, lntf: {enabled: false}, nack: {rtp_history_ms: 1000}, ulpfec_payload_type: 102, red_type: 100, rtx_ssrc: 366362199, rtx_payload_types: {97 (pt) -> 96 (apt), 99 (pt) -> 98 (apt), 101 (pt) -> 100 (apt), }, raw_payload_types: {}, extensions: []}, renderer: (renderer), render_delay_ms: 10, sync_group: 5747588d, target_delay_ms: 0}


remote_ssrc: 854861656
local_ssrc: 1

I try to use rtcp xr. In the Receiver side, the 'remote_ssrc' of the receive_stream is 854861656, and the 'local_ssrc' is 1. In the RTCPReceiver associated with the receive_stream, the 'registered_ssrcs_' contains the local_media_ssrc(equal to 'local_ssrc'). In the HandleXrDlrrReportBlock function, the ssrc of the rti parameter passed in corresponds to the 'remote_ssrc'. so, When executing the HandleXrDlrrReportBlock function, it will be intercepted by the code 'registered_ssrcs_.contains(rti.ssrc)'. Is there any mistake in the ssrc of the rti parameter, or it shoule be 'local_ssrc'? However, the server dont't know the receiver's local_ssrc.
Reply all
Reply to author
Forward
0 new messages