2011-08-26 54 views
0

我使用此代碼進行視頻流傳輸,並且工作正常。當一首歌完成後,它應該返回到我的主頁上,如Mediaplayer.setOnCompletion方法。流媒體歌曲完成時如何執行操作?

VideoView videoView = (VideoView) findViewById(R.id.VideoView); 
MediaController mc = new MediaController(this); 
mc.setAnchorView(videoView); 
mc.setMediaPlayer(videoView); 
Uri video = Uri.parse(stream_url); 

videoView.setMediaController(mc); 
videoView.setVideoURI(video); 
videoView.start(); 

我該怎麼做MediaController

回答