From 9a1d0c26338a7d0851c60b99296669cdc80673f2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 14 May 2023 19:53:31 -0300 Subject: new GhostPlayer class & support 👻 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also makes the UI not explode when duration strings aren't available for progress bar display, and shows getTimeStringsFromSec how to handle that. --- todo.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'todo.txt') diff --git a/todo.txt b/todo.txt index d8e6c7d..e718ce0 100644 --- a/todo.txt +++ b/todo.txt @@ -738,6 +738,9 @@ TODO: GHOST BACKEND for socket server... the main thing is syncing duration data. It sucks to have the player, like, actually be tied to a specific instance of MPV or whatever, so we'd use a ~ghost player~ which supports all the usual interfaces and lies about its current playback time. Yay! + (Partway: The ghost player exists now, and the backend and UI handle it! + Just need to hook up a "dummy" backend for the server, with ghost player + and duration metadata received from socket clients.) TODO: There should be a way for the server to handle disputes between two clients disagreeing on the duration of a track. Options could include, -- cgit 1.3.0-6-gf8a5