Multiple Worlds WebRTC samples MediaRecorder
Record Stream

For more information see the MediaStream Recording API Editor's Draft.

Media Stream Constraints options

Echo cancellation:

View source on GitHub