如何在单个视频视图中同时播放多个视频?或任何其他方式来做到这一点?

How to play multiple videos simultaneously in a single video view ? or any other ways to do it?

这是我一直在处理的代码,它只播放一个视频,我需要在一个视频视图中播放多个视频。或者知道如何使用其他方式吗?

protected void onCreate(Bundle savedInstanceState) {
                // list of mp4 files
                fileNameList = getFileListfromSDCard();

                final VideoView mVideoView2 = (VideoView)findViewById(R.id.videoView);

                // as of now it plays single video and repeat it over and over again
                String uriPath2 = secStore+"/Videos/test.mp4";
                Uri uri2 = Uri.parse(uriPath2);
                mVideoView2.setVideoURI(uri2);

                mVideoView2.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {

                    @Override
                    public void onCompletion( MediaPlayer mp ) {

                        mVideoView2.start();

                    }
                });

                mVideoView2.start();

                MediaController mc = new MediaController(this);
                mc.setMediaPlayer(mVideoView2);
                mVideoView2.setMediaController(mc);
      }

尝试在 mVideoView2.start() 之前添加这些;在 onCompletion

uriPath2 = secStore+"/Videos/test2.mp4";

uri2 = Uri.parse(uriPath2);

mVideoView2.setVideoURI(uri2);