Use MediaRecorder with different mimetypes
MediaRecorder
What do you wish to record?
Record Stop Recording…