Monday, 29 April 2013

Audio Player in android.

* Live Audio streaming:*

This example has been prepared to stream any audio file from specific URL, and when I have been created this example, I used Android 2.2.
In this sample, I have used one activity, is implemented four interfaces, again. These are:
1. OnClickListener : onClick() method is used, when one of the button has been pushed.
2. OnTouchListener : onTouch() method is used for seeking audio.
3. OnCompletionListener : To set enable of the buttons, overriden onCompletion() method is just used.
4. OnBufferingUpdateListener : onBufferingUpdate() method is used to update secondary progress of the seekBar instance.