Groups
Groups
Sign in
Groups
Groups
Android-SDK-Japan
Conversations
About
Send feedback
Help
複数の動画ファイルの連続再生について
1,442 views
Skip to first unread message
ma
unread,
Dec 6, 2009, 2:02:45 AM
12/6/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-SDK-Japan
単一動画ファイルの再生で、以下のようなコードで、現在再生を行っています。
VideoView video = (VideoView) findViewById
(R.id.PLAYMOVIE_VIDEOVIEW);
String path = "sdcard/hoge.3gp";
video.setVideoPath(path);
video.setMediaController(new MediaController(this));
video.requestFocus();
video.setOnCompletionListener(new OnCompletionListener () {
@Override
public void onCompletion(MediaPlayer mp) {
finish();
}
});
video.start();
複数の動画ファイルのファイルパスを配列などで Activity に渡し、連続で動画を再生させるには、どのようにすれば実現できますでしょうか?
動画ファイルの連続再生について、ご教授くださいますようお願いいたします。
ma
unread,
Dec 13, 2009, 6:40:50 AM
12/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-SDK-Japan
自己解決しました。
配列で動画ファイルのパスを受け取り、インクリメントさせて OnCompletionListener メソッド(再生完了イベントリスナー)内で、
パスを入れ替える事で、連続再生させることが出来ました。
Reply all
Reply to author
Forward
0 new messages