Repository navigation
Player: Lampa-style control panel, episode switching - #4
Merged
Merged
Conversation
The player gets a control panel modelled on Lampa's: a title bar (title, episode, clock, when it ends) and at the bottom a timeline over a row of round buttons -- previous / next episode, rewind, play/pause, forward, episodes, audio, subtitles, settings, lock. The player keeps the borealis focus and runs its own cursor: D-pad left/right through the buttons, up to the timeline (where left/right seek) and back down; A runs the button, B hides the panel, B again leaves. With the panel down, left/right seek in 10 s steps (growing when held); every seek is aimed first and issued once the input stops. Icons are drawn with nanovg (player_widgets). Episodes: a torrent with several videos is its own playlist, as in Lampa -- previous/next and the Episodes list (ZL) reopen the same torrent on another file, through the engine or TorrServer. Without one, previous/next go through the catalog or the Stremio series (WatchInfo.prevVideoId). An episode played to its end goes on to the next. Leaving for another episode no longer records the current one as finished. Also: video size modes (fill, stretch, zoom) in the settings panel, small per-button pickers for audio and subtitles, and a magnet metadata cache (torrent_set_meta_cache): a magnet opened again loads its .torrent from APPDATA_META instead of asking peers. Tests for the cache, torrent_save and the TorrServer file list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Плеер переделан по образцу Lampa.
Панель управления — сверху: название, серия/файл, часы, «Конец в HH:MM». Снизу: шкала времени (с буфером и подсказкой времени при перемотке) и ряд круглых кнопок: предыдущая серия, назад, пауза, вперёд, следующая серия · серии, аудио, субтитры, настройки, блокировка. Иконки рисуются через nanovg (
app/player_widgets.*): Material-глифы для плеера лежат в U+E000–E152, которые перехватывает шрифт Nintendo.Навигация крестовиной — плеер держит фокус borealis сам и ведёт свой курсор: ←/→ по кнопкам, ↑ на шкалу (там ←/→ перематывают), ↓ обратно. A нажимает кнопку, B скрывает панель, второе B — выход. Без панели ←/→ перематывают по 10 с (при удержании 30/60 с); перемотка выполняется один раз, когда ввод остановился. ZL — список серий.
Серии — многофайловая раздача = плейлист (как в Lampa): пред./след. и список серий переоткрывают тот же торрент на другом файле (движок или TorrServer). Без неё — через каталог или серию Stremio (
WatchInfo.prevVideoId). В конце серии — автопереход к следующей. Переход на предыдущую больше не отмечает текущую досмотренной.Ещё — размер видео (заполнить / растянуть / увеличить), отдельные панели выбора аудио и субтитров, кэш метаданных магнетов (
torrent_set_meta_cache,APPDATA_META): повторно открытый магнет не ждёт метаданные от пиров.Проверка
-Wallбез предупреждений (локально, с заглушками заголовков mpv — libmpv для Switch тут нет).torrent_save+ кэш магнетов (test_suite.c), список файлов TorrServer (test_net.cpp).test_netпроходит локально;test_suiteпрогонит CI.🤖 Generated with Claude Code