@M1ck , the plugin doesn’t auto refresh every x seconds. The seekbar wasn’t working previously because the plugin neglected to re-fetch the player state upon resuming from a network disconnection. In this version, I tested the fix on my phone by doing the following:
- Play a song while phone is connected to WiFi. The seekbar and time start running.
- Turn off WiFi while song is still playing. Screen darkens and shows spinning logo, indicating broken connection. The seekbar and time continue to run in the background because the player state cannot be determined.
- On another device that is connected to Volumio, play another song or change the seek position.
- Back on the phone, reconnect WiFi. When connection is reestablished, the plugin requests the updated state from Volumio and shows the new song / seek time as soon as it receives a response.
So I don’t understand why you’re experiencing a 30-second delay in getting the refresh. Maybe I misunderstood you and did the test differently?
Having said that, currently the seekbar will lag behind if the screen becomes inactive for a while (like when you switch to another tab). This is even when the network is still connected. I might be able to resolve this in the next version, but it will take some time to diagnose and test…
As for a plugin logo - no, I don’t have one. I appreciate the gesture, but it’s really not necessary