Problem Description:
I’m using the Janus videocall plugin (Janus v1.3.0, WebRTC: m 132) and encountered an issue. When both sides use addTrack
, the video call works as expected. However, when both sides switch to addTransceiver
, the sender’s onTrack
event is not triggered, causing the sender to not see the receiver’s video.
Analysis:
- Both sides are using
addTransceiver
. - After calling
addTransceiver
on the receiver’s side, the SDP generated bycreateAnswer
containsa=recvonly
, which suggests that the direction foraddTransceiver
is expected to besendrecv
, but it doesn’t seem to be applied correctly. - The media direction in the SDP exchange seems correct, but the sender’s
onTrack
event does not trigger.
Solutions Tried:
- Ensured that both sides’
addTransceiver
configurations are correct and that the media direction is set tosendrecv
. - Checked the SDP exchange process to verify that the direction attribute is correctly set.
- Debugged the SDP to ensure that all necessary fields are passed correctly.
Request for Help:
Could there be any additional configuration or adjustments needed when using addTransceiver
that would prevent the sender’s onTrack
event from being triggered? Is this potentially an issue with the media direction in the SDP, or could there be another underlying configuration problem related to Janus v1.3.0 and WebRTC m 132?