MediaSource.MediaSourceCaller


@UnstableApi
public interface MediaSource.MediaSourceCaller

Known direct subclasses
ServerSideAdInsertionMediaSource

A MediaSource for server-side inserted ad breaks.


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

Summary

Public methods

abstract void

Called when the Timeline has been refreshed.

Public methods

onSourceInfoRefreshed

abstract void onSourceInfoRefreshed(MediaSource source, Timeline timeline)

Called when the Timeline has been refreshed.

Called on the playback thread.

Parameters
MediaSource source

The MediaSource whose info has been refreshed.

Timeline timeline

The source's timeline.