brianwernick/ExoMedia

How Do I Play A Different Video And Audio But Make Them Sync Using 1 Player?

UserI33X opened this issue · 1 comments

videoView.setVideoURI(Uri.parse(videoUrl)); videoView.start();

The code above enables you to put 1 source into the videoview and start it but how do I make it so I can load a different videourl and audiourl and start them at the same time for sync?

If you want to have media playing from multiple sources you will need to create a custom MediaSource which can be provided to the VideoView through the setVideoUri(URI, MediaSource) method.

An example of how to construct a MediaSource can be found in the DefaultMediaSourceBuilder