MediaProgram

data class MediaProgram(val number: Int, val tracks: List<TrackId>, val name: String? = null, val provider: String? = null, val metadata: Map<String, String> = emptyMap())

One programme of the media: tracks that play together, such as one channel of a DVB recording or an IPTV multiplex, which carries several channels in one transport stream (#505).

Tracks.programs lists them and Tracks.selectedProgram names the one the player picks its tracks from. KitePlayer.selectProgram switches to another, and DemuxPolicy.program names one before the open.

Constructors

Link copied to clipboard
constructor(number: Int, tracks: List<TrackId>, name: String? = null, provider: String? = null, metadata: Map<String, String> = emptyMap())

Properties

Link copied to clipboard

Every tag the container gives the programme.

Link copied to clipboard
val name: String?

The channel's name, or null when the container names none.

Link copied to clipboard
val number: Int

The programme number the container states, which in a transport stream is the service id that the broadcaster's guide names the channel by. No other programme of the media has it.

Link copied to clipboard

Who provides the channel, or null when the container says nothing.

Link copied to clipboard

The tracks of this programme, in the order the container lists them.