MediaInspection

data class MediaInspection(val duration: Duration?, val tracks: Tracks, val metadata: Map<String, String>, val chapters: List<Chapter>, val seekable: Boolean, val containerBitrateBps: Long? = null)

What a file says about itself, read without playing it.

A library screen wants the length, the tracks and the chapters of a thousand files and wants to play none of them. This is the answer to that question, and it holds exactly the fields KitePlayer.open would have published, so a caller can show the same thing either way.

Constructors

Link copied to clipboard
constructor(duration: Duration?, tracks: Tracks, metadata: Map<String, String>, chapters: List<Chapter>, seekable: Boolean, containerBitrateBps: Long? = null)

Properties

Link copied to clipboard
Link copied to clipboard

What the container claims its overall bit rate is, in bits per second.

Link copied to clipboard

Null when the container declares none, for example a live stream.

Link copied to clipboard

The container's own tags: title, artist, and whatever else it wrote.

Link copied to clipboard
Link copied to clipboard