Menu

Telling a media server what this device can decode
📰

Telling a media server what this device can decode

DEV Community: kotlin·Yonto Player·7 days ago
#7DpUSBvf
#devtokotlin#devto#dev#server#device
Long article (1429 words) — no AI summary yet.
Reading 0:00
15s threshold

A media server can do a lot of work for a weak client. If a TV box has no decoder for a file, Jellyfin, Plex and Emby can convert it while you watch: a different codec, a smaller picture, HDR tone-mapped down for a screen that cannot show it. But the server only does that when the client tells it what it can play. A client that says nothing gets the file as it is stored, and whatever the device cannot decode plays badly or not at all.

So the question for a client is: what do you put in that message, and how do you keep it honest? This post is about how Yonto Player answers it on Android TV, phones and tablets, and why the answer is a small, plain description of the device rather than a copy of any one server's format.

What the device says

The app keeps one description of the device, the same for every server type. It is a small data class. Here it is as a simplified sketch (the real one has a few more fields and enums for the names):

// Simplified sketch of the device description, not the real file.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.