UPnP jumps directly to 2nd next instead of next

Issue description:

Dear Tolriq,

When I am listening to an album casting via UPnP and have to pause it for a longer time (could reproduce after ca. 30min), after finishing the “now playing” the app skips to the 2nd next track, but still shows playing the next one.

This happens very often when I have to pause a longer time and saw in the forum similar problems, I saw to disable UPnP gapless support but woudln’t really want to do that since I hear many gapless albums. So there is still no real solution for me.

I haven’t tested with other media provider, but it happens only when casting UPnP.

Logs:

Upload description: Stefs Upnp

Additional information:

 
Only playing UPnP.
Didn’t test with other media providers since PCloud is my main one.

EDIT - Apparently with Plex as media provider no issues. Logs uploaded.

 

Reproduction steps:

 
Playing any track in album and have to pause it.
After a long time paused, the track continues normaly.
When the track ends, it skips to the 2nd next altough the app shows playing the next.
 

Media provider:

pCloud

Screenshots:

     

Yes pCloud links expires and your device does not handle that properly with gapless enabled.

Not much I can do in this case :frowning:

When you say links expires you mean that when I press play, or change albums or let it idle for a while a new link is stablished?

Were you able to see that in the logs or it is a common problem?

Cheers

A link as file link, to be able to play the media, Symfonium request a filelink (an url) to the file and pass it to the renderer.

That link have an expiration date and after no more works hence the issue when long pausing.

2025-06-25 11:01:57.805 Verbose PCloudLogger  <-- [570] 200 OK https://eapi.pcloud.com/getfilelink?fileid=XXXXXXX&skipfilename=1 (35ms, 342-byte body)
2025-06-25 11:01:57.805 Verbose PCloudLogger  <-- [570] {
	"result": 0,
	"dwltag": "XXXXXXX",
	"hash": 17741503444789856936,
	"size": 42007872,
	"expires": "Wed, 25 Jun 2025 15:01:57 +0000",
	"path": "XXXXXXXX",
	"hosts": [
		"edef8.pcloud.com",
		"evc603.pcloud.com"
	]
}

From what I could understand, the link expires after 4 hours. My issue were happening after 30 min already

The issue happens between the upnp renderer and pcloud as you say it works with plex, it will work if you cast from the local device.

The renderer goes nuts fails and switch song without proper metadata update.

UPnP is a shitty protocol and the gapless part is worse. There’s no real workaround here as there’s only one way to do things.

Ok.
Thanks for looking this up .