Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmutes a few seconds too early, playing endings of ads. #39

Closed
roadie opened this issue Sep 29, 2019 · 7 comments
Closed

Unmutes a few seconds too early, playing endings of ads. #39

roadie opened this issue Sep 29, 2019 · 7 comments
Milestone

Comments

@roadie
Copy link

roadie commented Sep 29, 2019

Using Essential phone PH-1, using latest version of Spotify and Ad-Free. Most of the time, the phone would unmute before the ad finishes so a few seconds of ads would be played. Is there any way to unmute at the right time? Even just extend a few more seconds to mute the music would be less distracting.

@abertschi
Copy link
Owner

I don't observe your described behavior on my devices. Does it happen with all ads? What ad-blocking plugin did you select in ad-free settings? Can you create a video of your phone showing the notification drawer and the spotify and ad-free notifications when ads play? If you do so I will consider implementing such adjustment parameters but I first want to see the issue myself.

@roadie
Copy link
Author

roadie commented Oct 7, 2019

It doesn't happen to all the ads. And the behaviour is not the same all the time either. Sometimes it blocks the ads perfectly, sometimes it ends one second before the ad finishes, sometimes a free seconds, and occasionally half the ad is played.

I chose mute audio.

I don't have time to create a video to show this yet. I have to find another phone to record it so it'll take some effort. But basically the behaviour of the Ad-Free notification appears normal; it's shows the blocking and mute sign when it mute, and neck to normal when the blocking stops; but it just stops a bit early sometimes.

@abertschi
Copy link
Owner

If the behavior is irregular, there is not much I can do. I was thinking of adding an option to delay the action of unmuting. But this option will be applied for all unmutes, as there is no obvious way to recognize when to unmute and when to delay before unmute.

Currently, once one of the ad-detectors recognizes that there is no more ad playing, ad-free will unmute the stream audio channel and hide its notification.

fun onNoAd(observable: AdObservable) {
info { "AdEvent Change: NO_ADD" }
activeState = EventType.NO_AD
adPluginHandler.stopPlugin {
notificationChannel.hideDefaultAdNotification()
audioController.unmuteMusicStream()
}
}

@roadie
Copy link
Author

roadie commented Oct 8, 2019 via email

@abertschi
Copy link
Owner

At the same time, is there anything else you could suggest to
troubleshoot so I can find the root cause of this problem?

The only thing on top of my head is Settings/Playback/Crossfade option in the Spotify app, did you enable it? It may cause some interference with the notifications. If so, disable it.

@roadie
Copy link
Author

roadie commented Oct 8, 2019 via email

@abertschi abertschi added this to the v1.3 milestone Jan 13, 2020
@abertschi
Copy link
Owner

fixed in version #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants