Online + offline audio player

Hi everybody! I need help to play audio offline in app like deezer…
When I play a music I wan to download and play offline.