kaliatech / web-audio-recording-tests

Web audio recording tests, particularly for verifying functionality on iOS/Safari.
https://kaliatech.github.io/web-audio-recording-tests/dist/
MIT License
139 stars 34 forks source link

Empty audio / player error when recording with Safari 12.x #4

Open arj-ary opened 5 years ago

arj-ary commented 5 years ago

Tried the demo file https://kaliatech.github.io/web-audio-recording-tests/dist/#/test1 on Safari 12.x, the audio player just says error. Posting a screenshot, is this something that is already known? Is there a hack or a workaround that we could use, i have spent enough time looking for a solution for Safari, haven't had any luck.

image

namy16 commented 5 years ago

I'm also having the same issue, in the latest version 12.1.2 macOS (Laptop/Desktop) audio is not playing, it works fine for 12.1.1 and in 12.1 of iOS (iPhone, iPad and iPod)

kaliatech commented 5 years ago

Hmm. It is not a known issue. Here is a screenshot just now from my own tests using:

Screen Shot 2019-08-01 at 9 26 21 AM

If you have been doing web audio development, trying other solutions, or running other audio recording apps, it is possible to get your system in to an unrecoverable state where web audio recording simply stops working, I assume to hardware resource contention bugs. I had problems with that during original development, especially on iOS. Only a complete restart would fix. So if you have not yet, I would suggest restarting your machine and trying again. Also make sure no accessories are connected. i.e. no external mics, no paired bluetooth headphones, etc

Questions to help you debug:

iefreer commented 2 years ago

having the same issue, tested on iPhone6 plus, iOS 12.4.5, recording data is empty

kaliatech commented 2 years ago

I just tested with an iPhone6, iOS 12.5.4 using AWS Device Farm. It seemed to work as expected. Here's video showing it:

So per my previous comment, things to check:

Be sure to restart your device, because there are/were many external factors that could cause iOS/Safari to do this until restarted.

GreatTA1998 commented 2 years ago

For my iPadOS 15.7 it works alternates between working and failing - will give more details soon (red microphone always shows for each recording, and the first time asks for permission)