fix: Increase broadcast interval to 1 second while playing
All checks were successful
Backend CI / lint (push) Successful in 9m23s
Backend CI / test (push) Successful in 3m47s

This commit is contained in:
JSC
2025-08-16 12:24:41 +02:00
parent c27530a25f
commit 5e6cc04ad2

View File

@@ -619,8 +619,8 @@ class PlayerService:
# Update play time tracking
self._update_play_time()
# Broadcast state every 0.5 seconds while playing
broadcast_interval = 0.5
# Broadcast state every second while playing
broadcast_interval = 1
current_time = time.time()
if current_time - self._last_position_broadcast >= broadcast_interval:
self._last_position_broadcast = current_time