getLevel

abstract fun getLevel(type: BufferType, media: MediaType): BufferLevel

Returns the BufferLevel for the chosen buffer type and media type of the active Source.

Returns a BufferLevel where BufferLevel.level and BufferLevel.targetLevel is 0.0 if there is no active playback session.