resolveUri

fun Asset.resolveUri(deviceType: DeviceType?): String?

Resolve this asset's URI for deviceType, handling both the single-string and the targeted-array manifest shapes. Prefer this over reading Asset.uri directly.

Return

The media URL to play, or null when the asset has no candidate for this device.

Parameters

deviceType

The device the asset will play on; null selects the untargeted candidate.