fix: Increase broadcast interval to 1 second while playing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user