Use state machine for syncing playback
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user