I also learned about some of the nuances of the Android OS, issues with the emulator, and reported bugs/issues with Cordova.
– Android seems to scan for files rather rarely, so when files are added or deleted in the app it could take minutes to days before the updates are reflected in the content resolver. To remedy this, I added code in the plugin to insert or delete into/from the content resolver. Alternatively, I think the media scanner could be called but the coding seemed messier to use, especially within a plugin.
– The emulator broke down once for about an hour before I made a new one, saying it was unable to create a media player.
– A progress bar tracks the duration of the playing track. I wanted to allow for seeking, but after reading some posts from users and Cordova devs and doing some debugging I found Cordova’s call to get the track duration doesn’t return the value immediately, making the value -1. After pausing/stopping the track and playing again, the duration generally loads.