Play podcast episodes in the web player

Episodes in the queue are no longer skipped. The player asks the
podcast API for the audio source and the resume position, plays the
publisher URL (or the same-origin proxy when the administrator enabled
it and the direct URL fails or is http:// on an https:// page) and
seeks before it starts, so it never reports a resumed episode that
plays from elsewhere: a server that cannot seek to the saved position
shows that and keeps the position until the user plays from the start.

Progress follows the contract: Play starts a listening session as an
explicit action above the handed-off generation, checkpoints go out
every 20 s and on pause, a seek is an explicit action, the end of the
stream completes the episode, and a stop, a page hide (beacon) or a
handoff saves the final position. Writes of a session run one after
another in the background; a superseded session stops writing, and a
device that loses the playback role ends its session without a report.
Reports always carry the position of their own episode.

Jam placeholders stay unplayable and episodes stay private for Jam
rules. A podcasts store holds the list, the podcast page and the
explicit episode actions for the UI of the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:12:38 +02:00
1 parent 2c551c5b71
commit 3ebfc45abb
4 files changed
+1566 -64

No files matched your search

+57 -1
View File
@@ -382,8 +382,64 @@ translations! {
player_clear: "Clear" , "Очистить";
player_remove: "Remove" , "Удалить";
player_queue_empty: "Queue is empty" , "Очередь пуста";
player_queue_podcast_unplayable: "Podcast · not playable in the web player yet", "Подкаст · пока не воспроизводится в веб-плеере";
player_queue_podcast_item: "Podcast episode" , "Выпуск подкаста";
player_queue_private_item: "Private item · hidden by its owner", "Приватный элемент · скрыт владельцем";
player_podcasts: "Podcasts", "Подкасты";
player_podcast_add_placeholder: "RSS feed URL", "Адрес RSS-ленты";
player_podcast_add: "Add", "Добавить";
player_podcast_adding: "Loading the feed…", "Загружаем ленту…";
player_podcast_added: "Subscribed", "Подписка добавлена";
player_podcast_already: "Already subscribed", "Вы уже подписаны";
player_podcast_private_note: "New subscriptions are private: they sync only between your own devices.", "Новые подписки приватны: они синхронизируются только между вашими устройствами.";
player_podcasts_empty: "No podcasts yet. Add an RSS feed to subscribe.", "Подкастов пока нет. Добавьте RSS-ленту, чтобы подписаться.";
player_podcast_show_unsubscribed: "Show unsubscribed", "Показать без подписки";
player_podcast_unplayed: "unplayed", "не прослушано";
player_podcast_episodes: "episodes", "выпусков";
player_podcast_seasons: "seasons", "сезонов";
player_podcast_unsubscribed: "Not subscribed", "Нет подписки";
player_podcast_refresh: "Refresh", "Обновить";
player_podcast_refreshing: "Checking the feed…", "Проверяем ленту…";
player_podcast_refresh_updated: "Feed updated", "Лента обновлена";
player_podcast_refresh_not_modified: "No changes in the feed", "Изменений в ленте нет";
player_podcast_refresh_failed: "Could not refresh the feed", "Не удалось обновить ленту";
player_podcast_last_checked: "Checked", "Проверено";
player_podcast_never_checked: "Not checked yet", "Ещё не проверялась";
player_podcast_fetch_error: "Last check failed", "Последняя проверка не удалась";
player_podcast_next_check: "next check", "следующая проверка";
player_podcast_unsubscribe: "Unsubscribe", "Отписаться";
player_podcast_unsubscribe_confirm: "Unsubscribe from “{title}”? The feed will no longer be checked. Your progress and listening history are kept: subscribing again continues where you stopped.", "Отписаться от «{title}»? Лента больше не будет проверяться. Прогресс и история прослушиваний сохранятся: при повторной подписке вы продолжите с того же места.";
player_podcast_subscribe: "Subscribe", "Подписаться";
player_podcast_all_seasons: "All seasons", "Все сезоны";
player_podcast_season: "Season", "Сезон";
player_podcast_no_season: "No season", "Без сезона";
player_podcast_filter_all: "All episodes", "Все выпуски";
player_podcast_filter_unplayed: "Unplayed", "Не прослушано";
player_podcast_filter_in_progress: "In progress", "Начато";
player_podcast_filter_played: "Played", "Прослушано";
player_podcast_sort_newest: "Newest first", "Сначала новые";
player_podcast_sort_oldest: "Oldest first", "Сначала старые";
player_podcast_sort_number: "By number", "По номеру";
player_podcast_search: "Search episodes", "Поиск по выпускам";
player_podcast_no_episodes: "No episodes match.", "Подходящих выпусков нет.";
player_podcast_play: "Play", "Слушать";
player_podcast_resume: "Resume", "Продолжить";
player_podcast_restart: "Start over", "Начать сначала";
player_podcast_mark_played: "Mark played", "Прослушано";
player_podcast_mark_unplayed: "Mark unplayed", "Не прослушано";
player_podcast_add_queue: "Add to queue", "В очередь";
player_podcast_left: "left", "осталось";
player_podcast_saved_at: "Saved at", "Сохранено на";
player_podcast_played_badge: "Played", "Прослушано";
player_podcast_played_times: "Completed listens", "Полных прослушиваний";
player_podcast_not_in_feed: "No longer in the feed", "Больше нет в ленте";
player_podcast_load_more: "Load more", "Показать ещё";
player_podcast_history: "Recently listened", "Недавно прослушано";
player_podcast_jam_blocked: "Podcast episodes are private and cannot be added to a Jam.", "Выпуски подкастов приватны и не добавляются в Jam.";
player_podcast_source_failed: "Could not load this episode from the publisher.", "Не удалось загрузить выпуск у издателя.";
player_podcast_cannot_seek: "The publisher server cannot seek to the saved position. Press Play to listen from the start; until then the saved position is kept.", "Сервер издателя не умеет перематывать к сохранённой позиции. Нажмите Play, чтобы слушать с начала; до этого сохранённая позиция не меняется.";
player_podcast_loading: "Preparing the episode…", "Готовим выпуск…";
player_podcast_feed: "Feed", "Лента";
player_podcast_request_failed: "Request failed", "Запрос не выполнен";
player_shuffle: "Shuffle" , "Перемешать";
player_repeat: "Repeat" , "Повтор";
player_volume: "Volume" , "Громкость";