Hi, the following error is triggered in Safari when trying to play the recorded audio:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
The issue seems to be Safari being a bit tougher on what it is seeing as an auto-playing audio file, although a button is being clicked to stop the audio recording the stopAudioRecording
function then automatically calls playAudio(audioAsblob)
but Safari seems to see this process as the audio trying to autoplay (perhaps because the playAudio
function creates the audio HTML element dynamically at that point?).
I was wondering if there was any way to work around this error by adding a completely separate Play button to trigger playback of the audio?
Thanks!