Desktop: every uncached song waits 7-14 s for its stream URL
Duplicate Check
- [x] I confirm I searched for existing reports and found no duplicates.
#2695 is related, but it is about general lag on Android.
Latest Release
- [x] I confirm I am on the latest release and the problem still happens.
Operating System
Windows
Package Downloaded
.msix from SimpMusic-Windows-installer.zip. For the 2.5.0 test I unpacked it and ran bin\SimpMusic.exe directly, without installing it.
App Version
2.5.0 (also measured on 2.4.0)
Describe the Bug
Each song that has no saved stream URL waits several seconds before it can play. app.log puts the wait between Extracting playable URL for <id> and I/Stream: <id>: ….
| Version | Time to get the stream URL |
|---|---|
| 2.4.0 (installed) | 9.7–21 s |
| 2.5.0 | 7.2–14 s |
2.5.0 samples, same machine and connection, signed in:
| videoId | Time |
|---|---|
| k5FVwuFDDCk | 14.0 s |
| 9iUyi2hjz8I | 13.9 s |
| 9bZkp7q19f0 | 9.2 s |
| ASO_zypdnsQ | 8.0 s |
| k85mRPqvMbE | 7.2 s |
Some of these resolved at the same time as a precache, so they are not isolated single-request timings.
Steps to Reproduce
- Open the Desktop app on Windows.
- Play a song that has not been played recently.
- Compare the
Extracting playable URLandI/Streamtimestamps in~/.simpmusic/logs/app.log.
Expected Behavior
The stream URL resolves in about a second, so playback starts almost immediately.
Log / Error Details
21:10:42.7095903Z W/MpvPlayerAdapter: Extracting playable URL for ASO_zypdnsQ
21:10:50.74073Z I/Stream: ASO_zypdnsQ: Video, itag 250 audio/webm, expires in 21540s
21:10:50.8545349Z W/MpvPlayerAdapter: Extracting playable URL for k85mRPqvMbE
21:10:58.0548371Z I/Stream: k85mRPqvMbE: Video, itag 250 audio/webm, expires in 21540s
Possible cause and fix
I used an AI tool (Claude Code) to investigate this and write this report, and I have not reviewed the code myself.
The time appears to go to Extractor.newPipePlayer. An experiment suggests a faster route: one anonymous /player request as the VISIONOS client returns plain stream URLs. AuraMusic asks that client first. A local Windows build that tried it before the extractor, and kept the extractor as the fallback, resolved six never-played songs in 0.88–1.42 s.
Two things to watch if you try this:
ANDROID_VR 1.65.10was also fast, but the end of the file returned 403 on all four songs tested, so a first-byte check is not enough.- The request is anonymous, so Premium 256 kbps itags are not returned. Android was not tested.
The experiment is here for reference only: https://github.com/eitan770123/core/commit/3e98abe. I am closing maxrave-dev/core#46 because it did not follow CONTRIBUTING.md (AI markers, no linked issue, and no line-by-line human review).