-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] addTransceiver does not handle PRtcMediaStreamTrack nullability #1331
Comments
Thank you for bringing this up. Does setting |
Yes, it works fine if the parameter is set, for example like this: CHK_STATUS(addTransceiver(
connection, &(RtcMediaStreamTrack){.codec = RTC_CODEC_OPUS, .kind = MEDIA_STREAM_TRACK_KIND_AUDIO},
&(RtcRtpTransceiverInit){.direction = RTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY}, &self->audio_transceiver)); Additional observations: |
Are you using the C SDK for both the Viewer and the Master? If not can you please clarify which SDKs you're using for viewer and master. Since you're wanting to use In the C SDK if the offer is Is anything unexpected there? |
In case you're using the JS SDK the master then the direction being set to However certain browsers like Safari (last time I checked) completely ignore this, however last I checked in FF and Chrome it will respect that parameter so the answer direction WILL be |
Yes, I'm using C SDK for both sides.
No, there isn't, that makes sense. I left those observation in my previous comment just to make sure this behavior is intentional. |
Closing since the PR is merged. |
Description
The Doxygen documentation of
addTransceiver
states this about PRtcMediaStreamTrack parameter:Therefore, for adding RECVONLY transceiver I wrote:
However, the code above fails during runtime because of trying to member-access that NULL parameter, causing segmentation fault here:
amazon-kinesis-video-streams-webrtc-sdk-c/src/source/PeerConnection/PeerConnection.c
Line 1207 in 4127014
SDK version number
Current version on master branch, HEAD at 4127014
Expected behavior
Receive-only transceiver being added correctly, as it's stated in documentation.
Desktop:
The text was updated successfully, but these errors were encountered: