Back to Exoplayer

ConcatenatingMediaSource (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/ConcatenatingMediaSource.html

latest41.3 KB
Original Source

Package com.google.android.exoplayer2.source

Class ConcatenatingMediaSource


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classConcatenatingMediaSourceextends[CompositeMediaSource](CompositeMediaSource.html "class in com.google.android.exoplayer2.source")<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Concatenates multiple MediaSources. The list of MediaSources can be modified during playback. It is valid for the same MediaSource instance to be present more than once in the concatenation. Access to this class is thread-safe.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.source.MediaSource

MediaSource.Factory, MediaSource.MediaPeriodId, MediaSource.MediaSourceCaller

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | ConcatenatingMediaSource​(boolean isAtomic, boolean useLazyPreparation, ShuffleOrder shuffleOrder, MediaSource... mediaSources) | Deprecated. | | ConcatenatingMediaSource​(boolean isAtomic, MediaSource... mediaSources) | Deprecated. | | ConcatenatingMediaSource​(boolean isAtomic, ShuffleOrder shuffleOrder, MediaSource... mediaSources) | Deprecated. | | ConcatenatingMediaSource​(MediaSource... mediaSources) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | addMediaSource​(int index, MediaSource mediaSource) | Deprecated.

Adds a MediaSource to the playlist. | | void | addMediaSource​(int index, MediaSource mediaSource, Handler handler, Runnable onCompletionAction) | Deprecated.

Adds a MediaSource to the playlist and executes a custom action on completion. | | void | addMediaSource​(MediaSource mediaSource) | Deprecated.

Appends a MediaSource to the playlist. | | void | addMediaSource​(MediaSource mediaSource, Handler handler, Runnable onCompletionAction) | Deprecated.

Appends a MediaSource to the playlist and executes a custom action on completion. | | void | addMediaSources​(int index, Collection<MediaSource> mediaSources) | Deprecated.

Adds multiple MediaSources to the playlist. | | void | addMediaSources​(int index, Collection<MediaSource> mediaSources, Handler handler, Runnable onCompletionAction) | Deprecated.

Adds multiple MediaSources to the playlist and executes a custom action on completion. | | void | addMediaSources​(Collection<MediaSource> mediaSources) | Deprecated.

Appends multiple MediaSources to the playlist. | | void | addMediaSources​(Collection<MediaSource> mediaSources, Handler handler, Runnable onCompletionAction) | Deprecated.

Appends multiple MediaSources to the playlist and executes a custom action on completion. | | void | clear() | Deprecated.

Clears the playlist. | | void | clear​(Handler handler, Runnable onCompletionAction) | Deprecated.

Clears the playlist and executes a custom action on completion. | | MediaPeriod | createPeriod​(MediaSource.MediaPeriodId id, Allocator allocator, long startPositionUs) | Deprecated.

Returns a new MediaPeriod identified by periodId. | | protected void | disableInternal() | Deprecated.

Disables the source, see BaseMediaSource.disable(MediaSourceCaller). | | protected void | enableInternal() | Deprecated.

Enables the source, see BaseMediaSource.enable(MediaSourceCaller). | | Timeline | getInitialTimeline() | Deprecated.

Returns the initial placeholder timeline that is returned immediately when the real timeline is not yet known, or null to let the player create an initial timeline. | | MediaItem | getMediaItem() | Deprecated.

Returns the MediaItem whose media is provided by the source. | | protected MediaSource.MediaPeriodId | getMediaPeriodIdForChildMediaPeriodId​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder, MediaSource.MediaPeriodId mediaPeriodId) | Deprecated.

Returns the MediaSource.MediaPeriodId in the composite source corresponding to the specified MediaSource.MediaPeriodId in a child source. | | MediaSource | getMediaSource​(int index) | Deprecated.

Returns the MediaSource at a specified index. | | int | getSize() | Deprecated.

Returns the number of media sources in the playlist. | | protected int | getWindowIndexForChildWindowIndex​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder, int windowIndex) | Deprecated.

Returns the window index in the composite source corresponding to the specified window index in a child source. | | boolean | isSingleWindow() | Deprecated.

Returns true if the media source is guaranteed to never have zero or more than one window. | | void | moveMediaSource​(int currentIndex, int newIndex) | Deprecated.

Moves an existing MediaSource within the playlist. | | void | moveMediaSource​(int currentIndex, int newIndex, Handler handler, Runnable onCompletionAction) | Deprecated.

Moves an existing MediaSource within the playlist and executes a custom action on completion. | | protected void | onChildSourceInfoRefreshed​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder, MediaSource mediaSource, Timeline timeline) | Deprecated.

Called when the source info of a child source has been refreshed. | | protected void | prepareSourceInternal​(TransferListener mediaTransferListener) | Deprecated.

Starts source preparation and enables the source, see BaseMediaSource.prepareSource(MediaSourceCaller, TransferListener, PlayerId). | | void | releasePeriod​(MediaPeriod mediaPeriod) | Deprecated.

Releases the period. | | protected void | releaseSourceInternal() | Deprecated.

Releases the source, see BaseMediaSource.releaseSource(MediaSourceCaller). | | MediaSource | removeMediaSource​(int index) | Deprecated.

Removes a MediaSource from the playlist. | | MediaSource | removeMediaSource​(int index, Handler handler, Runnable onCompletionAction) | Deprecated.

Removes a MediaSource from the playlist and executes a custom action on completion. | | void | removeMediaSourceRange​(int fromIndex, int toIndex) | Deprecated.

Removes a range of MediaSources from the playlist, by specifying an initial index (included) and a final index (excluded). | | void | removeMediaSourceRange​(int fromIndex, int toIndex, Handler handler, Runnable onCompletionAction) | Deprecated.

Removes a range of MediaSources from the playlist, by specifying an initial index (included) and a final index (excluded), and executes a custom action on completion. | | void | setShuffleOrder​(ShuffleOrder shuffleOrder) | Deprecated.

Sets a new shuffle order to use when shuffling the child media sources. | | void | setShuffleOrder​(ShuffleOrder shuffleOrder, Handler handler, Runnable onCompletionAction) | Deprecated.

Sets a new shuffle order to use when shuffling the child media sources. |

- 

Methods inherited from class com.google.android.exoplayer2.source.CompositeMediaSource

disableChildSource, enableChildSource, getMediaTimeForChildMediaTime, maybeThrowSourceInfoRefreshError, prepareChildSource, releaseChildSource

- 

Methods inherited from class com.google.android.exoplayer2.source.BaseMediaSource

addDrmEventListener, addEventListener, createDrmEventDispatcher, createDrmEventDispatcher, createEventDispatcher, createEventDispatcher, createEventDispatcher, createEventDispatcher, disable, enable, getPlayerId, isEnabled, prepareSource, prepareSource, refreshSourceInfo, releaseSource, removeDrmEventListener, removeEventListener

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

ConcatenatingMediaSource

public ConcatenatingMediaSource​([MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")... mediaSources)

Deprecated. Parameters:mediaSources - The MediaSources to concatenate. It is valid for the same MediaSource instance to be present more than once in the array.

- 

ConcatenatingMediaSource

public ConcatenatingMediaSource​(boolean isAtomic,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")... mediaSources)

Deprecated. Parameters:isAtomic - Whether the concatenating media source will be treated as atomic, i.e., treated as a single item for repeating and shuffling.mediaSources - The MediaSources to concatenate. It is valid for the same MediaSource instance to be present more than once in the array.

- 

ConcatenatingMediaSource

public ConcatenatingMediaSource​(boolean isAtomic,[ShuffleOrder](ShuffleOrder.html "interface in com.google.android.exoplayer2.source")shuffleOrder,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")... mediaSources)

Deprecated. Parameters:isAtomic - Whether the concatenating media source will be treated as atomic, i.e., treated as a single item for repeating and shuffling.shuffleOrder - The ShuffleOrder to use when shuffling the child media sources.mediaSources - The MediaSources to concatenate. It is valid for the same MediaSource instance to be present more than once in the array.

- 

ConcatenatingMediaSource

public ConcatenatingMediaSource​(boolean isAtomic,
                                boolean useLazyPreparation,[ShuffleOrder](ShuffleOrder.html "interface in com.google.android.exoplayer2.source")shuffleOrder,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")... mediaSources)

Deprecated. Parameters:isAtomic - Whether the concatenating media source will be treated as atomic, i.e., treated as a single item for repeating and shuffling.useLazyPreparation - Whether playlist items are prepared lazily. If false, all manifest loads and other initial preparation steps happen immediately. If true, these initial preparations are triggered only when the player starts buffering the media.shuffleOrder - The ShuffleOrder to use when shuffling the child media sources.mediaSources - The MediaSources to concatenate. It is valid for the same MediaSource instance to be present more than once in the array.

Method Detail

- 

getInitialTimeline

public[Timeline](../Timeline.html "class in com.google.android.exoplayer2")getInitialTimeline()

Deprecated.

Description copied from interface: MediaSource

Returns the initial placeholder timeline that is returned immediately when the real timeline is not yet known, or null to let the player create an initial timeline.

Should not be called directly from application code.

The initial timeline must use the same uids for windows and periods that the real timeline will use. It also must provide windows which are marked as dynamic to indicate that the window is expected to change when the real timeline arrives.

Any media source which has multiple windows should typically provide such an initial timeline to make sure the player reports the correct number of windows immediately.

This method must be called on the application thread.

- 

isSingleWindow

public boolean isSingleWindow()

Deprecated.

Description copied from interface: MediaSource

Returns true if the media source is guaranteed to never have zero or more than one window.

Should not be called directly from application code.

The default implementation returns true.

This method must be called on the application thread.

Returns:true if the source has exactly one window.

- 

addMediaSource

public void addMediaSource​([MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")mediaSource)

Deprecated.

Appends a MediaSource to the playlist. Parameters:mediaSource - The MediaSource to be added to the list.

- 

addMediaSource

public void addMediaSource​([MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")mediaSource,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Appends a MediaSource to the playlist and executes a custom action on completion. Parameters:mediaSource - The MediaSource to be added to the list.handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media source has been added to the playlist.

- 

addMediaSource

public void addMediaSource​(int index,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")mediaSource)

Deprecated.

Adds a MediaSource to the playlist. Parameters:index - The index at which the new MediaSource will be inserted. This index must be in the range of 0 <= index <= getSize().mediaSource - The MediaSource to be added to the list.

- 

addMediaSource

public void addMediaSource​(int index,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")mediaSource,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Adds a MediaSource to the playlist and executes a custom action on completion. Parameters:index - The index at which the new MediaSource will be inserted. This index must be in the range of 0 <= index <= getSize().mediaSource - The MediaSource to be added to the list.handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media source has been added to the playlist.

- 

addMediaSources

public void addMediaSources​([Collection](https://developer.android.com/reference/java/util/Collection.html "class or interface in java.util")<[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")> mediaSources)

Deprecated.

Appends multiple MediaSources to the playlist. Parameters: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.

- 

addMediaSources

public void addMediaSources​([Collection](https://developer.android.com/reference/java/util/Collection.html "class or interface in java.util")<[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")> mediaSources,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Appends multiple MediaSources to the playlist and executes a custom action on completion. Parameters: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.handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media sources have been added to the playlist.

- 

addMediaSources

public void addMediaSources​(int index,[Collection](https://developer.android.com/reference/java/util/Collection.html "class or interface in java.util")<[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")> mediaSources)

Deprecated.

Adds multiple MediaSources to the playlist. Parameters:index - The index at which the new MediaSources will be inserted. This index must be in the range of 0 <= index <= getSize().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.

- 

addMediaSources

public void addMediaSources​(int index,[Collection](https://developer.android.com/reference/java/util/Collection.html "class or interface in java.util")<[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")> mediaSources,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Adds multiple MediaSources to the playlist and executes a custom action on completion. Parameters:index - The index at which the new MediaSources will be inserted. This index must be in the range of 0 <= index <= getSize().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.handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media sources have been added to the playlist.

- 

removeMediaSource

public[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")removeMediaSource​(int index)

Deprecated.

Removes a MediaSource from the playlist.

Note: If you want to move the instance, it's preferable to use moveMediaSource(int, int) instead.

Note: If you want to remove a set of contiguous sources, it's preferable to use removeMediaSourceRange(int, int) instead.

Parameters:index - The index at which the media source will be removed. This index must be in the range of 0 <= index < getSize().Returns:The removed MediaSource.

- 

removeMediaSource

public[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")removeMediaSource​(int index,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Removes a MediaSource from the playlist and executes a custom action on completion.

Note: If you want to move the instance, it's preferable to use moveMediaSource(int, int, Handler, Runnable) instead.

Note: If you want to remove a set of contiguous sources, it's preferable to use removeMediaSourceRange(int, int, Handler, Runnable) instead.

Parameters:index - The index at which the media source will be removed. This index must be in the range of 0 <= index < getSize().handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media source has been removed from the playlist.Returns:The removed MediaSource.

- 

removeMediaSourceRange

public void removeMediaSourceRange​(int fromIndex,
                                   int toIndex)

Deprecated.

Removes a range of MediaSources from the playlist, by specifying an initial index (included) and a final index (excluded).

Note: when specified range is empty, no actual media source is removed and no exception is thrown.

Parameters:fromIndex - The initial range index, pointing to the first media source that will be removed. This index must be in the range of 0 <= index <= getSize().toIndex - The final range index, pointing to the first media source that will be left untouched. This index must be in the range of 0 <= index <= getSize().Throws:IndexOutOfBoundsException - When the range is malformed, i.e. fromIndex < 0, toIndex > getSize(), fromIndex > toIndex

- 

removeMediaSourceRange

public void removeMediaSourceRange​(int fromIndex,
                                   int toIndex,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Removes a range of MediaSources from the playlist, by specifying an initial index (included) and a final index (excluded), and executes a custom action on completion.

Note: when specified range is empty, no actual media source is removed and no exception is thrown.

Parameters:fromIndex - The initial range index, pointing to the first media source that will be removed. This index must be in the range of 0 <= index <= getSize().toIndex - The final range index, pointing to the first media source that will be left untouched. This index must be in the range of 0 <= index <= getSize().handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media source range has been removed from the playlist.Throws:IllegalArgumentException - When the range is malformed, i.e. fromIndex < 0, toIndex > getSize(), fromIndex > toIndex

- 

moveMediaSource

public void moveMediaSource​(int currentIndex,
                            int newIndex)

Deprecated.

Moves an existing MediaSource within the playlist. Parameters:currentIndex - The current index of the media source in the playlist. This index must be in the range of 0 <= index < getSize().newIndex - The target index of the media source in the playlist. This index must be in the range of 0 <= index < getSize().

- 

moveMediaSource

public void moveMediaSource​(int currentIndex,
                            int newIndex,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Moves an existing MediaSource within the playlist and executes a custom action on completion. Parameters:currentIndex - The current index of the media source in the playlist. This index must be in the range of 0 <= index < getSize().newIndex - The target index of the media source in the playlist. This index must be in the range of 0 <= index < getSize().handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the media source has been moved.

- 

clear

public void clear()

Deprecated.

Clears the playlist.

- 

clear

public void clear​([Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Clears the playlist and executes a custom action on completion. Parameters:handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the playlist has been cleared.

- 

getSize

public int getSize()

Deprecated.

Returns the number of media sources in the playlist.

- 

getMediaSource

public[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")getMediaSource​(int index)

Deprecated.

Returns the MediaSource at a specified index. Parameters:index - An index in the range of 0 <= index <= getSize().Returns:The MediaSource at this index.

- 

setShuffleOrder

public void setShuffleOrder​([ShuffleOrder](ShuffleOrder.html "interface in com.google.android.exoplayer2.source")shuffleOrder)

Deprecated.

Sets a new shuffle order to use when shuffling the child media sources. Parameters:shuffleOrder - A ShuffleOrder.

- 

setShuffleOrder

public void setShuffleOrder​([ShuffleOrder](ShuffleOrder.html "interface in com.google.android.exoplayer2.source")shuffleOrder,[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")handler,[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")onCompletionAction)

Deprecated.

Sets a new shuffle order to use when shuffling the child media sources. Parameters:shuffleOrder - A ShuffleOrder.handler - The Handler to run onCompletionAction.onCompletionAction - A Runnable which is executed immediately after the shuffle order has been changed.

- 

getMediaItem

public[MediaItem](../MediaItem.html "class in com.google.android.exoplayer2")getMediaItem()

Deprecated.

Description copied from interface: MediaSource

Returns the MediaItem whose media is provided by the source.

Should not be called directly from application code.

This method must be called on the application thread.

- 

prepareSourceInternal

protected void prepareSourceInternal​(@Nullable[TransferListener](../upstream/TransferListener.html "interface in com.google.android.exoplayer2.upstream")mediaTransferListener)

Deprecated.

Description copied from class: BaseMediaSource

Starts source preparation and enables the source, see BaseMediaSource.prepareSource(MediaSourceCaller, TransferListener, PlayerId). This method is called at most once until the next call to BaseMediaSource.releaseSourceInternal(). Overrides:prepareSourceInternal in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>Parameters:mediaTransferListener - The transfer listener which should be informed of any media data transfers. May be null if no listener is available. Note that this listener should usually be only informed of transfers related to the media loads and not of auxiliary loads for manifests and other data.

- 

enableInternal

protected void enableInternal()

Deprecated.

Description copied from class: BaseMediaSource

Enables the source, see BaseMediaSource.enable(MediaSourceCaller). Overrides:enableInternal in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>

- 

createPeriod

public[MediaPeriod](MediaPeriod.html "interface in com.google.android.exoplayer2.source")createPeriod​([MediaSource.MediaPeriodId](MediaSource.MediaPeriodId.html "class in com.google.android.exoplayer2.source")id,[Allocator](../upstream/Allocator.html "interface in com.google.android.exoplayer2.upstream")allocator,
                                long startPositionUs)

Deprecated.

Description copied from interface: MediaSource

Returns a new MediaPeriod identified by periodId.

Should not be called directly from application code.

This method must be called on the playback thread and only if the source is enabled.

Parameters:id - The identifier of the period.allocator - An Allocator from which to obtain media buffer allocations.startPositionUs - The expected start position, in microseconds.Returns:A new MediaPeriod.

- 

releasePeriod

public void releasePeriod​([MediaPeriod](MediaPeriod.html "interface in com.google.android.exoplayer2.source")mediaPeriod)

Deprecated.

Description copied from interface: MediaSource

Releases the period.

Should not be called directly from application code.

This method must be called on the playback thread.

Parameters:mediaPeriod - The period to release.

- 

disableInternal

protected void disableInternal()

Deprecated.

Description copied from class: BaseMediaSource

Disables the source, see BaseMediaSource.disable(MediaSourceCaller). Overrides:disableInternal in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>

- 

releaseSourceInternal

protected void releaseSourceInternal()

Deprecated.

Description copied from class: BaseMediaSource

Releases the source, see BaseMediaSource.releaseSource(MediaSourceCaller). This method is called exactly once after each call to BaseMediaSource.prepareSourceInternal(TransferListener). Overrides:releaseSourceInternal in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>

- 

onChildSourceInfoRefreshed

protected void onChildSourceInfoRefreshed​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder,[MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")mediaSource,[Timeline](../Timeline.html "class in com.google.android.exoplayer2")timeline)

Deprecated.

Called when the source info of a child source has been refreshed. Specified by:onChildSourceInfoRefreshed in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>Parameters:mediaSourceHolder - The unique id used to prepare the child source.mediaSource - The child source whose source info has been refreshed.timeline - The timeline of the child source.

- 

getMediaPeriodIdForChildMediaPeriodId

@Nullable
protected[MediaSource.MediaPeriodId](MediaSource.MediaPeriodId.html "class in com.google.android.exoplayer2.source")getMediaPeriodIdForChildMediaPeriodId​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder,[MediaSource.MediaPeriodId](MediaSource.MediaPeriodId.html "class in com.google.android.exoplayer2.source")mediaPeriodId)

Deprecated.

Returns the MediaSource.MediaPeriodId in the composite source corresponding to the specified MediaSource.MediaPeriodId in a child source. The default implementation does not change the media period id. Overrides:getMediaPeriodIdForChildMediaPeriodId in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>Parameters:mediaSourceHolder - The unique id used to prepare the child source.mediaPeriodId - A MediaSource.MediaPeriodId of the child source.Returns:The corresponding MediaSource.MediaPeriodId in the composite source. Null if no corresponding media period id can be determined.

- 

getWindowIndexForChildWindowIndex

protected int getWindowIndexForChildWindowIndex​(com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder mediaSourceHolder,
                                                int windowIndex)

Deprecated.

Returns the window index in the composite source corresponding to the specified window index in a child source. The default implementation does not change the window index. Overrides:getWindowIndexForChildWindowIndex in class CompositeMediaSource<com.google.android.exoplayer2.source.ConcatenatingMediaSource.MediaSourceHolder>Parameters:mediaSourceHolder - The unique id used to prepare the child source.windowIndex - A window index of the child source.Returns:The corresponding window index in the composite source.