RTCMultiConnection Docs

RTCMultiConnection API Reference / "sdpConstraints"

You can force constraints that should be used each time when createOffer/createAnswer API are invoked.
connection.sdpConstraints.mandatory = {
    OfferToReceiveAudio: false,
    OfferToReceiveVideo: false,
    VoiceActivityDetection: false,
    IceRestart: true
};

For Renegotiation,

// when renegotiating streams,
// it is preferred to always set following 4 lines
// to make sure renegotiation NEVER fails!
connection.sdpConstraints.mandatory = {
    OfferToReceiveAudio: true,
    OfferToReceiveVideo: true
};

Want to ask a Question?

You can include your email for private conversation!

Latest Updates