Use state machine for syncing playback

This commit is contained in:
Peter Stockings
2026-03-03 23:15:19 +11:00
parent 0e7f80ff1f
commit 43929ea94d
2 changed files with 76 additions and 39 deletions

View File

@@ -105,8 +105,8 @@ class VlcSyncApp(QMainWindow):
self.local_file_path = None
self.lobby_widget.clear_file()
def _on_room_sync_action(self, action, position_s):
self.sync_client.send_message({"type": "sync", "action": action, "position": position_s})
def _on_room_sync_action(self, action, position_s, req_id):
self.sync_client.send_message({"type": "sync", "action": action, "position": position_s, "req_id": req_id})
def _on_room_chat(self, text):
self.sync_client.send_message({"type": "chat", "message": text})