R
R
relax942015-01-08 12:45:11
Android
relax94, 2015-01-08 12:45:11

Android audio stream download?

There is a task to play a stream on an Android device that is broadcast from an ip address.
I used standard tools and player:

mediaPlayer.setDataSource(url);
mediaPlayer.prepare()
mediaPlayer.start();

The above code completes the task, but it happens within a minute, since this is a long time for current purposes, please suggest a solution that will speed up this process.
Thank you )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pastukhov, 2015-01-08
@Getman_s

I think for these purposes it is better to use a specialized library BASS Audio Library . MediaPlayer thing is almost unmanageable. The BASS version for Android is downloaded here . Inside the archive there is an example called NetRadio. There is also GStreamer , but it is very large and harder to use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question