nstudio / nativescript-audio

:microphone: NativeScript plugin to record and play audio :musical_note:
Other
149 stars 104 forks source link

Android/ios no sound #181

Closed Upd4ting closed 3 years ago

Upd4ting commented 3 years ago

Hey

I can use this plugin the way I want (playFromFile, playFromURL, remote url, local url) it doesn't work. I'm always getting abandonAudioFocusRequest...result... 1 any idea ?

LaKing commented 3 years ago

Just run into this too ... is there a solution?

asharghi commented 3 years ago

Same here

asharghi commented 3 years ago

Works for me after adding a rule for copying mp3 files in the new webpack config:

webpack.Utils.addCopyRule("audio/**/*")

Screenshot 2021-05-01 at 03 42 27
Upd4ting commented 3 years ago

@LaKing I had to do the same things as @asharghi

LaKing commented 3 years ago

Great! ... Thanks !!!