Closed
Description
openedon Nov 29, 2016
We are trying to play multiple .mp4 files from local storage using ConcatenatingMediaSource like below:
E.x:
File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);
File file1 = new File(file,"file1.mp4");
File file2 = new File(file,"file2.mp4");
File file3 = new File(file,"file3.mp4");
MediaSource firstSource = new ExtractorMediaSource(Uri.parse(file1.getAbsolutePath()),mediaDataSourceFactory,new DefaultExtractorsFactory(),
mainHandler,eventLogger);
MediaSource secondSource = new ExtractorMediaSource(Uri.parse(file2.getAbsolutePath()),mediaDataSourceFactory,new DefaultExtractorsFactory(),
mainHandler,eventLogger);
MediaSource thirdSource = new ExtractorMediaSource(Uri.parse(file3.getAbsolutePath()),mediaDataSourceFactory,new DefaultExtractorsFactory(),
mainHandler,eventLogger);
return new ConcatenatingMediaSource(firstSource,secondSource,thirdSource);
Is it possible to have single seekbar with time length = f1 + f2 + f3 for all the above 3 files so that user can move back and forth between them?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment