Search in sources :

Example 1 with DynamicConcatenatingMediaSource

use of com.google.android.exoplayer2.source.DynamicConcatenatingMediaSource in project NewPipe by TeamNewPipe.

the class MediaSourceManager method resetSources.

/*//////////////////////////////////////////////////////////////////////////
    // MediaSource Playlist Helpers
    //////////////////////////////////////////////////////////////////////////*/
private void resetSources() {
    if (DEBUG)
        Log.d(TAG, "resetSources() called.");
    this.sources.releaseSource();
    this.sources = new DynamicConcatenatingMediaSource(false, // Shuffling is done on PlayQueue, thus no need to use ExoPlayer's shuffle order
    new ShuffleOrder.UnshuffledShuffleOrder(0));
}
Also used : DynamicConcatenatingMediaSource(com.google.android.exoplayer2.source.DynamicConcatenatingMediaSource)

Aggregations

DynamicConcatenatingMediaSource (com.google.android.exoplayer2.source.DynamicConcatenatingMediaSource)1