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 a fixed order
The player knows about an intro, a recap or the credits only if something told it. There are two places that can:
Your server's own markers. Plex, Jellyfin and Emby can each mark these stretches themselves, after their own scan. A source plugin reads them and hands the player a list of segments with the stream.
A community database, for the gaps. Where the source marked no intro or no credits, the app asks TheIntroDB, a community database of skip times, for that video.
The order is the whole design.…