Android media player: streaming audio file from HTTPS Url
问题 I have to stream an audio file from Android media player from an application. Initially the file to be streamed was coming from a Http:// url and for which I was Using code- public void playSample() { AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { @Override protected void onPreExecute() { mediaPlayer = new MediaPlayer(); } @Override protected Void doInBackground(Void... arg0) { try { try { mediaPlayer.setDataSource("http://an.http.url/"); mediaPlayer.prepare();