furkanbzkurt
furkanbzkurt

Reputation: 356

Android Audio Streaming is too slow

I'm trying to make a radio app. Everything is ok, except playing radios. I'm getting play link from a page with Jsoup. When i press play, (in real device)it takes 40-50 seconds to start playing. But in genymotion device (Google Nexus 4- 4.4.4- API 19) it takes just 3-4 second. I couldn't find what is wrong.

I'm new on Android and I couldn't find a solution for days. Thanks id advance.

Upvotes: 1

Views: 1214

Answers (2)

faraz khonsari
faraz khonsari

Reputation: 1954

I really recommend you to use google exo player instead of default android player for streaming. its too fast and you will never have problems like this.

https://github.com/google/ExoPlayer

Upvotes: 2

Niraj Sanghani
Niraj Sanghani

Reputation: 1493

You must try it without emulator, as they themselves are slow.

Also give below links a read.

https://developer.android.com/reference/android/media/AudioManager.html https://developer.android.com/guide/topics/media/mediaplayer.html

For Best performance native is good:

https://developer.android.com/ndk/guides/audio/index.html

Upvotes: 1

Related Questions