Menu

1 / 2

Search across every source, and a watch list: what the loader owes the slowest source

DEV Community: kotlin·Yonto Player·9 days ago
#eXYM9JiZ
#devtokotlin#devto#dev#search#sources
Long article (1406 words) — no AI summary yet.
Reading 0:00
15s threshold

Yonto Player plays your own library, and you can add several sources to it: a Jellyfin server, a Plex server, a folder on a NAS. Most screens show one source at a time, the active one. Search is the one place that asks all of them at once.

That sounds like a loop over a list. In practice a TV app has a few constraints that make the loop interesting: a remote for typing, and sources that answer at very different speeds. This post is about the choices that keep Search fast and honest, and about the Watch list that grew out of it.

Search stays live

The obvious way to search many sources is to build an index of all of them in the background and query that. I chose not to. An index needs a walker that keeps every source in step, and I did not want that running on a television. So Search asks the sources when you type, only more of them.…

Continue reading — create a free account

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