Open lsantaniello opened 5 months ago
can you resolve this?
can you resolve this?
not solved.
You can resolve this using my plugin: https://github.com/BarnabasSzabolcs/capacitor-play-audio-from-url
npm install capacitor-play-audio-from-url
then
PlayAudioFromUrl.play({url})
(It does not download the file, it only plays it (on iphone and on android). On the web, it caches the downloaded audio, so that the browser is less likely to deny playing the audio, if you want to play many audios one after another.
ref. https://developer.chrome.com/blog/autoplay )
I’d like to play mp3 audio in my ionic capacitor app. I download file from server and then I want play it.
I used:
@capacitor/filesystem in order to download file @capacitor-community/native-audio in order to play audio Download file:
Play audio
Download is OK but when I play I receve error:
I’m testing on web browser (ionic serve mode). If I use local audio file (stored into assets/sound folder), it works
could you lease help me?