ngCordova - Using $cordovaMedia and $cordovaNativeAudio at the same time


#1

Hey all,

I am working on a project where I am using $cordovaNativeAudio to run a simple background track that the user can turn on or off. On the same view, I also have a button to allow them to record a short piece using $cordovaMedia. Individually, the two plugins work great, but when the user has selected to play the background track, then chooses to record something, the background track stops playing for the duration of the recording and resumes when the recording stops.

Have I missed something here in getting the two plugins to work together in harmony (pardon the pun)? I would have through that NativeAudio runs in its own thread and can spool the sound and keep playing in the background?

Thanks!