AdQualitySelectionContext

AdQualitySelectionContext

data class AdQualitySelectionContext(val available: List<MediaFile>, val suggested: MediaFile, val bitrateEstimate: Long)

Context provided to the BitmovinAdvertisingConfig.onSelectAdQuality callback, containing information about the available media files and the current network conditions.

Constructors

AdQualitySelectionContextconstructor(available: List<MediaFile>, suggested: MediaFile, bitrateEstimate: Long)

Properties

NameSummary
availableval available: List<MediaFile>
The list of media files provided in the VAST response.
bitrateEstimateval bitrateEstimate: Long
The most recent bitrateEstimate estimate in bits per second.
suggestedval suggested: MediaFile
The media file that would be selected by the default selection algorithm if no custom selection is made.