Back to Exoplayer

MediaSource.MediaSourceCaller (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/MediaSource.MediaSourceCaller.html

latest1.4 KB
Original Source

Package com.google.android.exoplayer2.source

Interface MediaSource.MediaSourceCaller

  • All Known Implementing Classes:ServerSideAdInsertionMediaSourceEnclosing interface:MediaSource

public static interfaceMediaSource.MediaSourceCaller

A caller of media sources, which will be notified of source events.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onSourceInfoRefreshed​(MediaSource source, Timeline timeline) | Called when the Timeline has been refreshed. |

Method Detail

- 

onSourceInfoRefreshed

void onSourceInfoRefreshed​([MediaSource](MediaSource.html "interface in com.google.android.exoplayer2.source")source,[Timeline](../Timeline.html "class in com.google.android.exoplayer2")timeline)

Called when the Timeline has been refreshed.

Called on the playback thread.

Parameters:source - The MediaSource whose info has been refreshed.timeline - The source's timeline.