question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microphone plugin in iOS 11 not working (example page)

See original GitHub issue

I am having trouble implementing the microphone plugin on iOS 11. It works great on every other platform I have tried, including Chrome in Android, but iOS is a problem.

I have tried many different implementations myself, but the fact that the demo page for the microphone plugin doesn’t work for me on iOS 11.3 makes me wonder if this is a problem across the board, not just for me.

https://wavesurfer-js.org/plugins/microphone.html

For me, the page asks for access to the microphone as expected and indicates that mic access is live (console states Device ready!), but no waveform is displayed when audio input is presented. And when I tap the button to stop the mic, I get this error in the console:

TypeError: this.stream.stop is not a function. (In 'this.stream.stop()', 'this.stream.stop' is undefined)

I am assuming that this error is because I am trying to stop the stream when no stream has previously been created? Can anyone get this to work properly? Is this a known issue related to iOS? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
hburgundcommented, May 21, 2018

Hi @thijstriemstra…thx for the response. I have looked at some of these issues already with no luck, but I will look again to make sure I haven’t missed anything.

Can you confirm that the official example for the mic plugin does in fact work in mobile safari for you? I only have one iOS device running iOS 11, so it is certainly possible that for some reason that device is behaving abnormally. I am working on getting more devices to test and will report back ASAP.

0reactions
thijstriemstracommented, Nov 17, 2018

@hburgund check #1509, should work…

looks like videojs-record and videojs-wavesurfer unfortunately have the same problem in that they don’t visualize the mic input in mobile safari.

with new wavesurfer.js release that should be fixed there as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If the microphones on your iPhone aren't working
Go to Settings > Privacy > Microphone. Make sure that the app is enabled. If the app has permission to access your microphone,...
Read more >
External Microphone not Working on iPhone & iPad, Fix
Several users have said that their external microphone is not working properly on the iPhone or iPad. You may experience the following problems...
Read more >
10 Fixes iPhone Microphone not working after iOS 16.2 update
This article features the reasons and the solutions related to fixing the iPhone microphone problem after updating to iOS 16.
Read more >
iPhone Microphone Not Working? 5 Ways to Troubleshoot
If your iPhone microphone is not working, there are steps you can take to troubleshoot and solve the problem.
Read more >
Common iPhone 11 Problems and How to Fix Them
The iPhone 11 Pro Max, for example, has been associated with premature battery wear. In 2021, a bug affecting only iPhone 11 models...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found