AssetMedia

data class AssetMedia(val kind: AssetMediaKind?, val format: AssetMediaFormat?, val mimeType: String?, val source: AssetMediaSource?, val issue: AssetMediaIssue?)

How the SDK handles an asset's media (mirrors the TS AssetMedia). A declared mimeType the SDK recognises decides kind and format; otherwise mediaType decides kind, and the URL or the file content decides the format.

Constructors

Link copied to clipboard
constructor(kind: AssetMediaKind?, format: AssetMediaFormat?, mimeType: String?, source: AssetMediaSource?, issue: AssetMediaIssue?)

Properties

Link copied to clipboard

The container the declared mimeType names; null when it names none.

Link copied to clipboard

Why the declared mimeType was not used as given.

Link copied to clipboard

The surface the asset needs; null when neither mimeType nor mediaType names one.

Link copied to clipboard

The declared mimeType, lower-cased and without parameters, when the SDK passes it to the player.

Link copied to clipboard

The field that decided kind.