stash/internal
CJ 66ceceeaf1
feat(dlna): add activity tracking for DLNA playback (#6407)
Adds time-based activity tracking for scenes played via DLNA, enabling
play count, play duration, and resume time tracking similar to the
web frontend.

Key features:
- Uses existing 'trackActivity' UI setting (no new config needed)
- Time-based tracking (elapsed session time / video duration)
- 5-minute session timeout to handle aggressive client buffering
- Minimum thresholds before saving (1% watched or 5 seconds)
- Respects minimumPlayPercent setting for play count increment

Implementation:
- New ActivityTracker in internal/dlna/activity.go
- Session management with automatic expiration
- Integration via DLNA service initialization

Limitations:
- Cannot detect actual playback position (only elapsed time)
- Cannot detect seeking or pause state
- Designed for upstream compatibility (no complex dependencies)
2026-01-05 16:10:52 +11:00
..
api Performer merge (#5910) 2026-01-05 15:54:19 +11:00
autotag Handle modified files where the case of the filename changed on case-insensitive filesystems (#6327) 2025-12-02 12:53:37 +11:00
build Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
desktop Initialise IsDesktop early to avoid confusion due to ffmpeg checks (#6417) 2025-12-17 13:42:42 +11:00
dlna feat(dlna): add activity tracking for DLNA playback (#6407) 2026-01-05 16:10:52 +11:00
identify Feature: Tag StashID support (#6255) 2025-11-13 14:24:09 +11:00
log add lumberjack log rotation (#5696) 2025-11-18 14:04:22 +11:00
manager feat(dlna): add activity tracking for DLNA playback (#6407) 2026-01-05 16:10:52 +11:00
static Add SFW content mode option (#6262) 2025-11-18 11:13:35 +11:00