I am making an application for the song Stream audio. In the user media player, I have to show the total duration of this audio file. If the sound song is SDCard, I can find out its duration using
MediaPlayer player;
public double duration() {
return player.getDuration();
}
But in my case, the audio file is on the server, so I need to transfer it.
What is the best approach?
source
share