How to save an audio stream?

1

Very good, I do not know if my question is well formulated, but I have an application in which I play an audio stored in my hosting, what I want is to save it, I have searched for everything and can not find a way to store it.

I have a listview that filled it with a remote database,

When I click on an item on my list send the next function to send the url where I have stored the music that plays

public void reproducir(String YT) {

    if (mp != null) {
        mp.stop();
    }
    try {
        data = Uri.parse(YT);
        mp = MediaPlayer.create(getApplicationContext(), data);
        mp.start();
        ActSeekBar.start();
        sb.setMax(0);
        try {
        } catch (Exception e) {
            sb.setMax(mp.getDuration());
        }
    }
    catch (Exception e) {

    }


}
    
asked by Saúl Hernández 27.06.2017 в 16:31
source

1 answer

0

Good afternoon, I found the solution to my question in the following link: link

    
answered by 29.06.2017 / 22:31
source