Skip to main content

Module media

Module media 

Source
Expand description

What a client learns about a media file before it plays it: its length, what it is (container and picture, to show), and the tracks it can choose between.

Audio and subtitle codecs stay on the server, where the playback planner uses them; a client chooses an audio language, not a codec.

Structs§

AudioTrack
MediaTracks
The tracks of one media file. A track is identified by its position in its list, which is stable for as long as the file does not change.
SubtitleDownload
A subtitle track downloaded from a subtitle site, for everyone on the server.
SubtitleDownloaded
A subtitle downloaded: the item’s new track, at once, and the downloads left today.
SubtitleResult
One subtitle a search found, to download by its id.
SubtitleSearch
What a subtitle search found for an item, best first: hash matches, then the rest by rating and downloads; machine-translated and AI-made after people’s; rejected ones last. Every site the server searches is asked at once, and their results are one list.
SubtitleSourceStatus
How one site’s part of a search went.
SubtitleTiming
How an external text subtitle is timed: synced to the file or as it came, and moved by a manual offset on top. Set for everyone who plays the item.
SubtitleTrack
VideoTrack
A file’s picture as it is stored, for “4K · HEVC · Dolby Vision · 10-bit”: what the file is, not how it will play.

Enums§

AudioRole
What an audio track is for.
QuotaOf
Whose downloads ran out.
SubtitleOrigin
Who made a subtitle.
SubtitleRole
What a subtitle track is for.
SubtitleSource
A subtitle site the server searches and downloads from. On the wire it is its id, a string: a client shows a site this build does not know as that id.
SubtitleSourceState
Whether a site answered a search.
SubtitleSync
Where a subtitle’s sync is.