Not Supported on iOS Safari
See original GitHub issueHello,
I already put it in the #21 issues but nobody could give me an answer so I made a new issue.
I tried multiple things with mic-recorder lib in my React project but I have an issue with the safari browser on iOS (same on ios chrome). When I click on the record button with
startRecording = () => {
// Start recording. Browser will request permission to use your microphone.
window.AudioContext = window.AudioContext || window.webkitAudioContext;
if (window.AudioContext) {
window.audioContext = new window.AudioContext();
}
this.setState({
isRecording: true,
});
recorder
.start()
.then(() => {
// something else
})
.catch(e => {
console.error(e);
});
};
When trying the example from https://jsfiddle.net/8u5fbpx6/1/ it works on ios.
Because I am not using it exactly like the example in my REACT code, it doesn’t display the popup that should ask me if I want to accept that safari is going to use the microphone.
If someone have any idea with that
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
If Safari isn't loading websites or quits on your iPhone, iPad, or ...
If Safari isn't loading websites or quits on your iPhone, iPad, or iPod touch · Connect to a different network · Restart your...
Read more >8 Ways to Fix Safari Not Working on an iPhone - MakeUseOf
1. Turn Off Safari Suggestions · 2. Turn On Cellular Data for Safari · 3. Edit Your Screen Time Settings · 4. Clear...
Read more >Safari not working on iOS 16? How to fix it - iGeeksBlog
1. Ensure that you have allowed Safari to use Cellular · 2. Clear Safari History and Website Data · 3. Reset your iPhone...
Read more >Safari Not Working On iPhone? Here's The Fix.
Safari Not Working On iPhone? Here's The Fix. · What's Really Causing The Problem? · Close And Reopen Safari · Clear Safari History...
Read more >Safari Not Working on Your iPhone? Here's How to Fix It
Reset your wireless router. Turn mobile data off and turn it back on again. Clear Safari cache and data. Restart your iPhone.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey guys, it’s a pretty quick fix and it’s not the libraries fault.
Basically, Safari requires your url to be https to use the microphone. I fixed the problem by using ngrok to tunnel and used the given https url to test the functionality.
Hope this helps!
Anyone has a sample example for ios safari?