public void play()
{
/** 비디어뷰에 재생할 동영상 주소를 연결 */
path = "http://www.archive.org/download/doa_1949/doa_1949_512kb.mp4";
videoview.setVideoURI(Uri.parse(path));

videoview.setOnPreparedListener(new OnPreparedListener() { /** 동영상 재생 */
public void onPrepared(MediaPlayer mp) {
video_MaxPosition = videoview.getDuration();
video_CurrentPosition = videoview.getCurrentPosition();

calculateTime(video_MaxPosition);
time = String.format("%02d:%02d:%02d",hh,mm,ss);
video_total_text.setText(time);

calculateTime(video_CurrentPosition);
time = String.format("%02d:%02d:%02d",hh,mm,ss);
video_current_text.setText(time);
videoview.requestFocus();
videoview.start();
seek_bar_layout.setVisibility(View.VISIBLE);
video_seekbar.setProgress(MainTab.tap.getCurrentProgress());
video_seekbar.setMax(video_MaxPosition);

updatePosition();
notifyForUser();

handler.removeCallbacks(hide_runnalbe);
handler.postDelayed(hide_runnalbe, 5000);
}

});

 

 

웹주소에 있는 동영상을  play 시키는 건데요

 

path = "http://www.archive.org/download/doa_1949/doa_1949_512kb.mp4"; 
                                               ↑   ↑   ↑   ↑   ↑

                 이부분을 DB에 저장되어 있는 주소를 불러오게 하려고 합니다.

 

아래는 DB구성입니다.

db.execSQL("CREATE TABLE vod ( _id INTEGER PARIMARY KEY, web URI, title TEXT);");

INSERT  INTO vod VALUES (null, 'http://www.archive.org/download/doa_1949/doa_1949_512kb.mp4' , '사랑과영혼' );");

 

vod테이블에있는 web항목의 주소를 path에 넣어서 해당주소를

 

videoview.setVideoURI(Uri.parse(path));에서 읽을 수 있도록 하려합니다.

 

쿼리를 써서 하려는데 잘 안되네요. 

 

도와 주십셔..ㅠㅠ