0
嗨 我試圖在視頻視圖上播放視頻。視頻未顯示在視頻視圖
btnPlay.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
if(videoView.isPlaying()) {
videoView.stopPlayback();
}
else {
videoView.setVisibility(View.VISIBLE);
videoView.setVideoPath(path);
videoView.setZOrderOnTop(true); videoView.start();
videoView.requestFocus();
}
}
});
btnClose.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
videoView.stopPlayback();
}
});
這是我遵循的方法論。但視頻不被看到 Kidnly幫助我。我傳遞一個.mp4文件作爲路徑..是否有路徑問題
感謝ü..我知道了.. – user562237 2011-05-20 13:44:28
我給的路徑錯誤 – user562237 2011-05-20 13:44:40