How to play music in android/desktop and saved in local for offline

Hi. I want when the user clicking the tracks, Save songs for offline,how can do that with “ground.db” .
and which are the best player or library js for desktop/android?

:confounded:
plz help.