Seventh-Day Adventist Church

Pastor Jhon J. Gómez M. Página oficial

Menu

an

{ MediaPlayer mPlayer = new MediaPlayer(); mPlayer.setVolume(volumen , volumen); mPlayer.reset(); mPlayer.setDataSource("http://184.173.176.213:36227/"); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mPlayer.setOnPreparedListener(new OnPreparedListener() { [MENTION=42589]override[/mention] public void onPrepared(MediaPlayer mp) { mp.start(); } }); mPlayer.prepareAsync(); }catch(Exception ex) { Log.e(TAG, "Error: " + ex.getLocalizedMessage()); Toast.makeText(this, "Error: " + ex.getLocalizedMessage(), Toast.LENGTH_SHORT).show(); }