Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SDP constraints used by PeerConnectionWrapper
The SDP constraints for publisher connections when the MCU is used were set for all connections. Those constraints set "OfferToReceiveAudio" and "OfferToReceiveVideo" to false, which disables receiving audio and video when the local participant is the one sending the offer. Therefore, audio and video was not received when the MCU was not used and the local participant was the one initiating the connection. The "OfferToReceiveXXX" configurations have no effect when set on an answer (and thus are not even set, an empty MediaConstraints is used in that case). However, when "OfferToReceiveVideo = false" is set the video transceiver is explicitly stopped (which is used to avoid receiving video when joining a call with audio only). Therefore, as "OfferToReceiveVideo = false" was always set, video was never received in subscriber connections when the MCU is used, or connections initiated by the other peer when the MCU is not used. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
- Loading branch information