I am using Chrome ans working on a webRTC application. I am getting an error 'malformed constraints object' in the createAnswer() for a session Description offer
pc.createAnswer(gotDescription, errorHandler, constraints);
I have tried all the options such as
constraints = {'mandatory': {
'offerToReceiveAudio': true,
'offerToReceiveVideo': true}};
constraints = {'offerToReceiveAudio': true,
'offerToReceiveVideo': true};
and with both capital and small 'o' but still the same error.
Any suggestions?