This whole thing happens using an API, which is MediaRecorder API. This API provides functionality to record media such as audio or video. It is created using the MediaRecorder() constructor.
The Promises are as follows:
- resolve : If all permissions are achieved and the microphone or camera are working fine, then it returns a MediaStream object. This is the main recorded data.
- NotAllowedError: If the user reject the permission for recording.
- NotFoundError: If there is no media track.
- NotReadableError: If the input devices are not found or the hardware is not working.
- OverconstrainedError: If constraint audio settings are preventing.
- AbortError: If generic unknown cause is found.
- How to find record using any key-value pair information of record in your local/custom database using Node.js ?
- HTML | DOM Audio play() Method
- How to play audio repeatedly using HTML5 ?
- How to set audio loop in amp-audio of Google AMP ?
- Introduction of Graduate Record Examinations (GRE)
- How to hide or show one record from an ng-repeat within a table based on ng-click?
- How to add unique Id to each record in your local/custom database in Node.js ?
- How to find record by Id from local/custom database in Node.js ?
- How to update a record in your local/custom database in Node.js?
- How to delete a record from your local/custom database in Node.js ?
- How to use Bootstrap modal for YouTube videos and play automatically ?
- How to Build Progressive Web Application and Submit it to the Play Store?
- CSS | animation-play-state Property
- HTML | DOM Video play( ) Method
- p5.js | play() Function
- How to play/pause video using jQuery ?
- How to play a notification sound on websites?
- How to play the animation exactly two times using CSS ?
- How to play animation from start to end with same speed using CSS ?
- Data Scraping for Android Apps using google-play-scraper in Node.js
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.