Is it possible to connect two (or more) videos so that they have a total TimeBar (the length was the length of both videos and the user could change the position). In the program I get an array of video url and the number of repetitions (for each), I need to send it so that these repetitions have a common TimeBar.
Now the code looks something like this. I tried different [...] MediaSource to connect the repetitions, but they still work separately (one ends, TimeBar income to the end, another begins, TimeBar at the beginning).
ConcatenatingMediaSource concatenatedSource = new ConcatenatingMediaSource(); for (int i = 0; i < source.size(); ++i) { VideoExerciseData data = source.get(i); MediaSource videoSource = new ExtractorMediaSource(Uri.parse(data.url), dataSourceFactory, extractorsFactory, null, null); concatenatedSource.addMediaSource(videoSource); } Are there any options?