Exoplayer2 - ConcatenatingMediaSource, duration of all sources
问题 I have basic code for playing couple of audio files via exoplayer ExtractorMediaSource audioSource = new ExtractorMediaSource(uri, dataSourceFactory, extractor, null, null); ExtractorMediaSource audioSource2 = new ExtractorMediaSource(uri2, dataSourceFactory2, extractor, null, null); ConcatenatingMediaSource concatenatedSource = new ConcatenatingMediaSource(audioSource, audioSource2); I'm trying to get duration off all media sources using code example from https://github.com/google/ExoPlayer