0
我有一個列表視圖,我想,當該行獲得點擊播放視頻,我的代碼是:問題在播放視頻:(
public void onItemClick(AdapterView<?> a, View v, int position, long id)
{
setContentView(R.layout.video);
VideoView videoview = (VideoView)findViewById(R.id.videoview);
MediaController mc = new MediaController(?);
videoview.setMediaController(mc);
videoview.setVideoURI(Uri.parse((String) myList.getItemAtPosition(position)));
videoview.requestFocus();
videoview.start();
}
你從這個Uri.parse得到了什麼((String)myList.getItemAtPosition(position)) – ingsaurabh 2011-03-08 06:31:45
Uri.parse((String): - 給出的URL播放 – jack 2011-03-08 06:33:17
任何想法?。如何解決這個問題 – jack 2011-03-08 06:52:14