prepare

abstract fun prepare()

Prepares the player for playback, synchronously.

After setting the datasource and the display surface, you need to either call prepare() or prepareAsync(). For files, it is OK to call prepare(), which blocks until MediaPlayer is ready for playback.

Throws

if it is called in an invalid state