wavesurfer.play() does not play the audio #3596
Replies: 1 comment
-
Hey, I found something here on stackoveflow: Then If you look at the other answers there too , they suggest you can resume the AudioContext with the following code: So maybe you could try something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to play an audio file. It is loading correctly as I can see the waveform. But when i click on the
play
button, it does not start playing and instead throws anAudioContext
warning in console. I am not sure as to why I am getting this, because I've been using wavesurfer.js for weeks now and I have not faced this issue ever.This my code snippet to play the file:
This is the console upon clicking the
![image](https://private-user-images.githubusercontent.com/66988314/313071675-69e1e956-3e21-48c4-80f1-1fe2fe10bcd5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwMDc2NzcsIm5iZiI6MTcyMTAwNzM3NywicGF0aCI6Ii82Njk4ODMxNC8zMTMwNzE2NzUtNjllMWU5NTYtM2UyMS00OGM0LTgwZjEtMWZlMmZlMTBiY2Q1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDAxMzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwYmFjYjZlZTIzNTI4MDkyYjkyMWFiYjI0MDZjOTM2NDUzMDYxYjhjODQxZWJjZjE3NjdjNDM0ZTBiNDE3NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nQIvDcJ48rd-cEikQXBREjvKMhx7jhsHSPSs7qAyfn4)
play
button:Wonder if there's any fixes, do let me know. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions