flathub / com.spotify.Client

https://flathub.org/apps/details/com.spotify.Client
74 stars 34 forks source link

Every Ad Spawns a New PipeWire Node #271

Open JustALawnGnome7 opened 9 months ago

JustALawnGnome7 commented 9 months ago

As indicated in the image below (from qpwgraph), Spotify's built-in ad service spawns a new PipeWire node every time a new round of ads starts playing. In the example shown, the newest node (i.e., "spotify-5 [Spotify]") is the only one that actually plays anything.

Spotify_PipeWire

TingPing commented 9 months ago

This is something to report upstream: https://community.spotify.com/t5/FAQs/How-can-I-get-an-issue-fixed/ta-p/5182588

JustALawnGnome7 commented 9 months ago

Per your suggestion, I checked with the Spotify community and discovered that the issue had already been raised. I've added my own comments to the raised issue, which can be found using the link below:

https://community.spotify.com/t5/Desktop-Linux/Linux-desktop-client-creates-a-lot-of-sinks/m-p/5632019

JustALawnGnome7 commented 9 months ago

Per the suggestions from the Spotify Community, I've tested the officially supported Spotify packages (i.e. Snap and DEB), and the issue doesn't appear there. This seems to be an issue with the Flatpak specifically.

Erick555 commented 9 months ago

Maybe pipewire folks would have some advice on this? I use pulseaudio and there are no such issues.

JustALawnGnome7 commented 9 months ago

It seems that an additional "Spotify" audio sink only gets created after a video ad plays, which also plays in its own "Chromium" audio sink (see below).

With Chromium Video Ad: With Chromium Video Ad

After Chromium Video Ad: After Chromium Video Ad