Split shorts from regular videos with a vertical shorts feed
- Detect shorts by duration (SHORTS_MAX_DURATION_SECONDS, default 180)
and expose is_short in feed, video and channel-activity DTOs.
- Feed gains type=all|long|short and anchor; lists show a two-mode
'Обычные | Shorts' filter (no 'Все') persisted in the URL.
- Clicking a short opens /shorts/🆔 a vertical scroll-snap feed with
autoplay for the active slide, context-aware endpoints and infinite
loading.
- Keep the sound choice across swipes, syncing with the player's own
mute control and guarding against the widget's stale isMuted() reads.
This commit is contained in:
parent
43adec5224
commit
252f38597d
25 changed files with 1297 additions and 88 deletions
|
|
@ -93,6 +93,10 @@ VIDEOS_KNOWN_STOP_THRESHOLD=50
|
|||
# и в сайдбаре категорий, а также фильтр «только новые» по клику на число
|
||||
NEW_VIDEOS_WINDOW_DAYS=2
|
||||
|
||||
# Видео короче или равные этому числу секунд считаются Shorts.
|
||||
# Неизвестная длительность (NULL) считается обычным видео.
|
||||
SHORTS_MAX_DURATION_SECONDS=180
|
||||
|
||||
# ---------- Логи ----------
|
||||
|
||||
LOG_LEVEL=INFO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue