setOnPreparedListener

abstract fun setOnPreparedListener(listener: () -> Unit)

Register a callback to be invoked when the media source is ready for playback.

Parameters

listener

the callback that will be run