我正在研究音频流Android应用程序,我从服务器获取歌曲网址,当我开始播放时,我正在使用音频流应用程序启动它也显示缓冲但我的问题是当我将搜索栏移动到特定位置时没有缓冲的搜索栏手柄正在向后移动.实际上我需要从那个位置开始播放歌曲.看到我的代码,请告诉我如何处理这种情况
public class StreamingMp3Player extends Activity implements OnClickListener, OnTouchListener, OnCompletionListener, OnBufferingUpdateListener{
private ImageButton buttonPlayPause;
private SeekBar seekBarProgress;
public EditText editTextSongURL;
private MediaPlayer mediaPlayer;
private int mediaFileLengthInMilliseconds; // this value contains the song duration in milliseconds. Look at getDuration() method in MediaPlayer class
private final Handler handler = new Handler();
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
initView();
}
/** This method initialise all the views in project*/
private void initView() …Run Code Online (Sandbox Code Playgroud)