library/core/src/main/java/com/google/android/exoplayer2/source/ConcatenatingMediaSource.java
public final synchronized void addMediaSources(
      int index,
      Collection<MediaSource> mediaSources,
      Handler handler,
      Runnable onCompletionAction) {
    addPublicMediaSources(index, mediaSources, handler, onCompletionAction);
  }
/**
   * Adds multiple {@link MediaSource}s to the playlist and executes a custom action on completion.
   *
   * @param index The index at which the new {@link MediaSource}s will be inserted. This index must
   *     be in the range of 0 &lt;= index &lt;= {@link #getSize()}.
   * @param mediaSources A collection of {@link MediaSource}s to be added to the list. The media
   *     sources are added in the order in which they appear in this collection.
   * @param handler The {@link Handler} to run {@code onCompletionAction}.
   * @param onCompletionAction A {@link Runnable} which is executed immediately after the media
   *     sources have been added to the playlist.
   */
Adds multiple  MediaSources to the playlist and executes a custom action on completion.
@param index The index at which the new  MediaSources will be inserted. This index must
be in the range of 0 <= index <=  #getSize().
@param mediaSources A collection of  MediaSources to be added to the list. The media
sources are added in the order in which they appear in this collection.
@param handler The  Handler to run  onCompletionAction.
@param onCompletionAction A  Runnable which is executed immediately after the media
sources have been added to the playlist.
Adds multiple MediaSources to the playlist and executes a custom action on completion . @param index The index at which the new MediaSources will be inserted . This index must be in the range of 0 < = index < = #getSize () . @param mediaSources A collection of MediaSources to be added to the list . The media sources are added in the order in which they appear in this collection . @param handler The Handler to run onCompletionAction . @param onCompletionAction A Runnable which is executed immediately after the media sources have been added to the playlist .
public final synchronized void addMediaSources(
      int index,
      Collection<MediaSource> mediaSources,
      Handler handler,
      Runnable onCompletionAction) {
    addPublicMediaSources(index, mediaSources, handler, onCompletionAction);
  }
public final synchronized void addMediaSources ( int index , Collection < MediaSource > mediaSources , Handler handler , Runnable onCompletionAction ) { addPublicMediaSources ( index , mediaSources , handler , onCompletionAction ) ; }
Adds multiple {@link MediaSource}s to the playlist and executes a custom action on completion.
Adds multiple { @link MediaSource } s to the playlist and executes a custom action on completion .