Replies: 4 comments 14 replies
-
Hi there, do you have some ideas about what could be causing the error? |
Beta Was this translation helpful? Give feedback.
-
Hi @katspaugh, I think this is still an issue. |
Beta Was this translation helpful? Give feedback.
-
I’ve never seen this error. Need to debug. I've reproduced the issue in desktop Safari. After googling a bit, it looks like it's related to security restriction in Safari. See this for details: https://arrangeactassert.com/posts/how-to-fix-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possibly-because-the-user-denied-permission/ |
Beta Was this translation helpful? Give feedback.
-
Hi there @katspaugh I think I have solved this by doing some changes on my implementation. I think My error was that I was removing instances and created new ones instead of loading the files on the same instance.
is there a proper way to call the play properly? like some specific event that will listen for the changed/loaded file. I'm still using version 6.2.0 btw , the great thing is that it finally worked on the IOS best |
Beta Was this translation helpful? Give feedback.
-
Hi there, first, thanks for this library, it's awesome.
I have a platform that uses audiowavesurfer. I have a problem when I send an event to the player in order to activate the .playPause().
When I click the button here I send an event that is received by another instance of awf
it works ok on desktop but on ios devices I'm receiving this error
As I've read on other issues this may be due to the promises implementation on the load?
Wavesurfer.js version(s):
6.2.0 / 6.3.0
Browser and operating system version(s):
IOS chrome / safari
The error can be reproduced in this page: https://rauversion.com/tracks/97 , note that it will fail only on ios devices, desktop works ok.
my implementation is here:
https://github.com/rauversion/rauversion-phx/blob/main/assets/js/hooks/player.js
the event handling triggers this function:
https://github.com/rauversion/rauversion-phx/blob/main/assets/js/hooks/player.js#L54-L68
what I noted is that this fails when I use wave.load(audio_url, dataPeaks), if I don't change the audio and just keep the previous audio then the playPause works ok. so, is there a hack to load audio tracks properly for these browsers?
this fails
this works
Thanks
Beta Was this translation helpful? Give feedback.
All reactions