Urgent.News

What's breaking now, across thousands of outlets.

Tech

Skip intro from your server's markers and a community database

A Skip intro button is a small thing to see and a surprisingly fussy thing to build. The button is easy. The hard questions are where the times come from, and what to do when two places have an answer. This post is about those choices in Yonto Player, a player for your own library on Android TV, phones and tablets. Server markers came first; the community lookup arrived in 5.4.0. Two sources, in…

The "Skip intro" button in the Yonto Player is a feature that enhances user experience for videos on Android TV, phones, and tablets. The button's functionality is determined by where the time markers for the intro, recap, or credits are located. These markers can come from two sources: the user's own server or a community database called TheIntroDB.

When the server marks an intro or credits, the player uses that information without any further action. However, if a server does not mark an intro or credits, the app will query the community database for that information. The order of precedence is vital; the server's markings are given priority over the community database's findings.

The player models segments in a simplified way, categorizing them into intro, recap, credits, preview, and commercial types. The database's lookup process is initiated by the device, using a unique ID to differentiate between videos. The database queries do not involve the server, ensuring that only relevant data is fetched.

A user can toggle the lookup feature on or off in the settings. Once enabled, the player waits for five seconds after playback starts before initiating a lookup, preventing unnecessary network requests. The database only returns results if they fit the video's length, excluding segments with no identifiable start or end times.

The button's label changes based on the segment's type and whether there's a next episode in the series. For instance, an intro segment will display "Skip intro," while a recap segment would show "Skip recap." If there's a next episode available, the label changes to "Next episode" to facilitate seamless navigation.

In summary, the "Skip intro" button in the Yonto Player is a versatile tool that leverages both server markings and community database lookups to provide users with a customizable viewing experience. The button's behavior is determined by a well-defined order of precedence, ensuring accurate and efficient segment identification and labeling.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I got a RAG app running on a 512 MB free server. The trick was not running the embedding model at all.

Most "build a RAG app" tutorials work fine in a notebook. Then you try to put one online on a free host, and it falls over.

  • Use cloud inference service Qdrant Cloud to embed text instead of running an embedding model locally
  • Create custom LangChain retriever to pass raw text to Qdrant's querypoints method
  • Mitigate Groq LLM API token limit by using higher maxtokens (1024) and low reasoningeffort

More from Saturday 14 November →