abertschi / ad-free

A modularized audio ad blocker for Android
https://abertschi.ch/blog/2022/building-adfree/
Apache License 2.0
277 stars 19 forks source link

Spotify pauses itself when ad is muted #96

Open beatsandmelody opened 11 months ago

beatsandmelody commented 11 months ago

As title says, when the first ad starts losing up, adfree begins playing my music, then Spotify pauses itself.

I also have my music set to play until end of song. When my song ends, next ad properly plays while muted, my local song starts again, but the 2nd ad was shorter so after a short time, I have a muted Spotify song playing as well as my local song.

Also, is it possible to have my local song just play at whatever volume I was last on? I don't want to "set" a specific music playback volume. Just have it play at what it was before adfree kicked in.

Pixel 7 Pro Spotify version 8.8.92.700 com.spotify.music versionCode 108008228 targetSdk 34 minSdk 21

Just recently discovered this app and finding it quite interesting and cool.

Thank you.

abertschi commented 11 months ago

thanks for reaching out. the audio player is difficult to troubleshoot as it relies on device-specific behavior. while it works fine on my developer phones, addressing your particular issue may require access to a pixel phone to trouble shoot. i suggest using the mute plugin as an alternative.

if possible, consider creating a screen recording illustrating the coordination issue between ads and playback. this may help me to troubleshoot your issue. solely based on your description, it's challenging to take a meaningful action otherwise.

thanks and cheers

beatsandmelody commented 11 months ago

Ok will do.

Pixel BT has always been kind of wonky.

For 7 Pro, this seems to only happen on BT headphones.

Tested on Pixel Buds Series-A, original Wyze Headphones (not the newer gaming headphones, probably discontinued), Galaxy Buds Live, and Anker Soundcore Liberty Air (aptX capable).

The really strange thing is that this works perfectly on my car BT. That's strange because all my Pixel phones have an audio delay when watching YT in my car and always have (2017 Subaru with upgraded Harman Kardon system).

abertschi commented 10 months ago

Regarding Bluetooth, there is a workaround for a Bluetooth issue. maybe this helps you as well: https://github.com/abertschi/ad-free/issues/64