In my application, I will playing music from URL. So it would still take some time to
play the audio since it is through streaming.
I wanted to implement a ProgressDialog while waiting for the MediaPlayer to play/start.
Here is my method for playing the audio:
public void playMedia(Stri...
wait wait wait okay one minute bas....i have it service me in another project....
lemme test that
yay its working - only play and stop. it works. now i need a seekbar and timer displays in my activity. hwo do i do this when my mediaplayer is in the service?
Guys i used phonegap framework for an app In andriod kitkat version when i used i did see a yellow color text box around edit box ie., very ugly look where as for other os versions there is no issue
and the mediaplayer is referenced at 'n' number of places...in the mediacontroller implemented methods.....what do i write in place of the mediaplayers name?
or in serviceconnected you can use mService = binder.getService();
and than mc = new MediaController(mpContext); mc.setAnchorView(findViewById(R.id.anchorText)); mc.setMediaPlayer(mService); mc.setEnabled(true); mc.show(0);
simple Media Player with streaming example.For xml part you need one button with id button1 and two images in your drawable folder with name button_pause and button_play and please don't forget to add the internet permission in your manifest.
public class MainActivity extends Activity {
private ...
but the problem was that - i had a list of audio filenames. it worked perfectly on the first click on the list...on any item.....but after that if i clicked on any second item it didnt work then
@TeknoFreek You should call the prepareAsync() method while listening the OnPrepared event. When the event is triggered you should notify your UI and start the player
Hi.. I'm new with iOS and this might be a noob question, but how am I able to strip all non alphebetical characters and chars like ä, ö or ü from a string?