mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 18:23:59 +00:00
Addresses #3181, #3184, #3186 Protocol changes (JamProtocol.kt): - Add SeekTo command for precise position synchronization - Add currentPositionMs to QueueState for resume/sync accuracy Host improvements (JamRoomService.kt): - Immediate broadcast on room creation so guests sync current track instantly (#3184) - Broadcast currentPositionMs with every state update - Throttle broadcasts: distinctUntilChanged + debounce(500ms) to reduce MQTT traffic & CPU (#3186) - Send explicit SeekTo command on resume/play so guests seek before playing (#3181) Guest improvements (JamRoomService.kt): - On resume: seek to host's currentPositionMs BEFORE calling play() (#3181) - Periodic drift correction: if position diff > 2s, auto-seek to host position (#3181) - Handle SeekTo command from host Connection resilience (JamRoomClient.kt): - Exponential backoff reconnect (1s, 2s, 4s... max 30s) with jitter (#3186) - Max 10 reconnect attempts before giving up - Prevents reconnection storms on flaky networks Also includes participant name UI from previous commit (#3185) |
||
|---|---|---|
| .. | ||
| graalvm | ||
| icons | ||
| src | ||
| build.gradle.kts | ||
| Cargo.lock | ||
| Cargo.toml | ||
| proguard-rules.pro | ||