Stay organized with collections Save and categorize content based on your preferences.

MediaSource.MediaSourceCaller

@UnstableApi
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 functions

Unit
onSourceInfoRefreshed(source: MediaSource!, timeline: Timeline!)

Called when the Timeline has been refreshed.

Public functions

onSourceInfoRefreshed

fun onSourceInfoRefreshed(source: MediaSource!, timeline: Timeline!): Unit

Called when the Timeline has been refreshed.

Called on the playback thread.

Parameters
source: MediaSource!

The MediaSource whose info has been refreshed.

timeline: Timeline!

The source's timeline.