Constraint-like RTCOfferOptions are no longer supported

Published: | Categories: Audio & Video


The support for deprecated, constraint-like RTCOfferOptions, which was once dropped from Firefox 33 but soon restored with warnings for backward compatibility, has been removed from Firefox 43. This old syntax no longer works and logs an error until Firefox 44:

var options = {
    mandatory: { OfferToReceiveAudio: true },
    optional: [{ OfferToReceiveVideo: true }]

This is the new syntax. Watch out for the case difference:

var options = {
    offerToReceiveAudio: true,
    offerToReceiveVideo: true