amazon-kinesis-video-streams-webrtc-sdk-c icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard

[Bug]: Seemingly SessionDescription creation bug

Open wei-zhang-simplisafe opened this issue 1 year ago • 1 comments

Please confirm you have already done the following

  • [X] I have searched the repository for related/existing bug reports
  • [X] I have all the details the issue requires

Please answer the following prompt

  • [X] This issue is replicable using the unmodified sample application

Describe the bug

This line looks wrong: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/blob/master/src/source/PeerConnection/SessionDescription.c?plain=1#L659 The SPRTINTF will be overwritten by the next SPRINTF: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/blob/master/src/source/PeerConnection/SessionDescription.c?plain=1#L662

nack feature is supported by webrtc SDK, so these lines should be in the SDP: a=rtcp-fb:125 nack a=rtcp-fb:125 nack pli

But because of the above issue, only "a=rtcp-fb:125 nack pli" is in the SDP. Some peer doesn't know webrtc SDK supports NACK, so won't send NACK RTCP packets.

Expected Behavior

These lines should be in the SDP: a=rtcp-fb:125 nack a=rtcp-fb:125 nack pli

Current Behavior

Only a=rtcp-fb:125 nack pli is in the SDP

Reproduction Steps

Run sample code, and check the SDP text

WebRTC C SDK version being used

Most recent code base

If it was working in a previous version, which one?

No

Compiler and Version used

Any compiler

Operating System and version

any OS

Platform being used

any platform

wei-zhang-simplisafe avatar Jun 05 '24 02:06 wei-zhang-simplisafe

It does look like a bug. Thanks @wei-zhang-simplisafe ! Will get this fixed.

disa6302 avatar Jun 17 '24 16:06 disa6302

fix has been merged!

hassanctech avatar Jul 29 '24 17:07 hassanctech