Skip to main content

Module playback

Module playback 

Source
Expand description

Playback plans: how the server would play an item for this client, given what it can decode and which tracks it picked.

Structs§

ChosenTracks
The tracks the server chose when the client sent no Selection, and why, so the client can show it.
ConvertedAudio
What happens to the selected audio track in a converted plan.
ConvertedSubtitle
What happens to the selected subtitle in a converted plan.
PlannedAudio
PlannedSubtitle
Rung
One variant of an HLS ladder: its picture’s height and its video’s bitrate, bits per second (an encode’s cap; a copy’s average). Its codec, range and burned-in subtitle are the plan’s video’s, only the size and rate differing, unless video says otherwise.
Selection
The tracks a client wants, as positions in the item’s MediaTracks lists. Only these count: a track the user did not pick never blocks playback.

Enums§

AudioAction
BitmapSubtitles
How a picked bitmap subtitle (PGS) is shown: drawn by the client, read as text by the server, or burned into the video. Text subtitles are not affected; they are never burned in. Pictures are burned in only when the client cannot draw them.
ConvertedVideo
What happens to the video in a converted plan.
PlaybackPlan
Quality
What quality a playback is planned for: the viewer’s choice for this playback. The capabilities’ max_bitrate, the app’s own limit, stays a ceiling over each.
SubtitleAction
SubtitleDelivery
Where the client gets a subtitle from.
TrackReason
Why a track was chosen, or why none was.

Constants§

LINK_SHARE
Of a link’s measured rate, the share a playback is planned for: the rest is room for the link’s swings and for the requests, artwork and progress reports that share it. The server plans for it, and the SDK asks for a new plan when a file needs more than it.