Closed DustinBel closed 7 years ago
You can pass an dictionary of constraints, not just one.
RTCMediaConstraints(mandatoryConstraints: [
"OfferToReceiveVideo": "true",
"OfferToReceiveAudio": "false"
], optionalConstraints: [
"DtlsSrtpKeyAgreement": "true",
"googCpuLimitedResolution": "false"
]
)
Is it possible to add more constrains? Because the current interface supports:
init(mandatoryConstraints mandatory: [String : String]?, optionalConstraints optional: [String : String]?)
So I can pass only 1 constraint. Is it possible to submit more mediaConstraints? Like OfferToReceiveAudio, OfferToReceiveVideo etc.