Firefox used to allow this but we reworked the JS interface and in the process removed this capability, as we do not believe it complies with the specification.
You need to do create a mozRTCSessionDescription() object based on the JSON structure. -Ekr On Sat, Jun 29, 2013 at 4:55 AM, <[email protected]> wrote: > I just wanted to add that I did try this but see a warning 'Unhandled > state type: 1' now. > > On Saturday, June 29, 2013 11:04:11 AM UTC+3, [email protected] wrote: > > Hi, > > > > > > > > With FF nightlies and now the latest Aurora I've noticed that if we pass > in a JS object containing the offer and type attributes rather than a > mozRTCSessionDescription object we get an error (TypeError: Argument 1 of > mozRTCPeerConnection.setRemoteDescription does not implement interface > mozRTCSessionDescription). An 'offer' that comes over a socket.io server > for instance is not a mozRTCSessionDescription object. > > > > > > > > I guess I could cast it to a mozRTCSessionDescription object with > something like 'var mozOffer = new mozRTCSessionDescription(offer)' and > then pass that to the setRemoteDescription(mozOffer). > > > > However I just wanted to check if anyone else is facing this issue or if > I am perhaps doing something wrong or missing something here? > > > > > > > > Thanks, > > > > Anselm > _______________________________________________ > dev-media mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-media > _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

