From fdc5961a4b8423ffe5e6e4939f9f709f8e7e34c9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 15 May 2023 16:06:04 -0300 Subject: WIP socket shenanigans this commit is mostly trash lol --- todo.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'todo.txt') diff --git a/todo.txt b/todo.txt index 59a9f87..63ba2e2 100644 --- a/todo.txt +++ b/todo.txt @@ -753,3 +753,15 @@ TODO: There should be a way for the server to handle disputes between two send out events to start the next track, and in reaction only to the clients' own "done playing" events (or the GHOST PLAYER reaching the playback time provided when the track was first shared). + +TODO: Implement a waaaay better socat system, particularly one which waits for + feedback when a command is sent and returns that. This has to be special- + coded for mpv since there isn't a generalized standard, so it should make + use of the existing Socat class, not replace it outright. + +TODO: Use above socat system to keep "pinging" the socket until a response is + received - mpv doesn't make the socket immediately available. I think if + we wait for a pong response before allowing any actual commands to go + through, we can avoid weirdness with commands being dropped beacuse they + were sent too early. For now we just use a time-based delay on the base + Socat class, which is a hack. -- cgit 1.3.0-6-gf8a5