setInterstitialMediaSelectionCriteria(_:forMediaCharacteristic:)
Sets media selection on interstitials for this asset
Declaration
func setInterstitialMediaSelectionCriteria(_ criteria: [AVPlayerMediaSelectionCriteria], forMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic)Parameters
- criteria:
The array of selection criteria to set
- mediaCharacteristic:
The AVMediaCharacteristic to which the criteria will be applied
Discussion
Typically, interstitial assets have not been discovered when the main download is initiated. This method allows the user to specify AVMediaSelectionCriteria for all interstitials that are discovered. Each AVPlayerMediaSelectionCriteria in the array of criteria specfies a set of criteria for a variant to download.