ユーザーのデフォルトビデオプレーヤーでビデオを再生しようとしています。私は彼らが次々にプレイリスト(プレイリストのようなもの)を演奏して欲しい。現在、私は1つだけを再生する方法を知っています(下記のコードを参照)。フォルダやファイルの一覧を開くことはできますか?Androidで複数のビデオファイルを再生する目的で使用します。
は、ここに私のコードです:
final Intent playIntent = new Intent(android.content.Intent.ACTION_SEND);
playIntent.setType("video/*");
playIntent.putExtra(android.content.Intent.EXTRA_STREAM, Uri.parse("file://" + filePath));
mContext.startActivity(Intent.createChooser(playIntent, "Play videos list"));
m3u8 list http://android.stackexchange.com/questions/5866/is-there-a-way-to-open-an-m3u8-playlist-on-android –
psを試してみてください。フレームワーク(chrome、webappを含む)の例を少し大きく取ると、アンドロイドモバイルのプレイリストとキューにlibsがあります。https://github.com/googlecast/cast-manager-polymer/blob/master/queue-manager.html OR https://github.com/googlecast/CastCompanionLibrary-android/blob/master/src/com/google/android/libraries/cast/companionlibrary/cast/MediaQueue.java –