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§
- Audio
Track - Media
Tracks - 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.
- Subtitle
Download - A subtitle track downloaded from a subtitle site, for everyone on the server.
- Subtitle
Downloaded - A subtitle downloaded: the item’s new track, at once, and the downloads left today.
- Subtitle
Result - One subtitle a search found, to download by its
id. - Subtitle
Search - 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.
- Subtitle
Source Status - How one site’s part of a search went.
- Subtitle
Timing - 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.
- Subtitle
Track - Video
Track - 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§
- Audio
Role - What an audio track is for.
- QuotaOf
- Whose downloads ran out.
- Subtitle
Origin - Who made a subtitle.
- Subtitle
Role - What a subtitle track is for.
- Subtitle
Source - 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. - Subtitle
Source State - Whether a site answered a search.
- Subtitle
Sync - Where a subtitle’s sync is.