You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 callsplayAudio(audioAsblob)
but Safari seems to see this process as the audio trying to autoplay (perhaps because theplayAudio
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!
The text was updated successfully, but these errors were encountered: