Giter Site home page Giter Site logo

Comments (11)

artemgordinskiy avatar artemgordinskiy commented on July 27, 2024

Sorry, there's no way for us to block them.

from spotifree.

yolfer avatar yolfer commented on July 27, 2024

Dang, this makes spotifree much less useful. Can you provide a bit of technical info about why the video ads are not blockable by spotfiree? Maybe someone in the community can figure out a fix.

from spotifree.

artemgordinskiy avatar artemgordinskiy commented on July 27, 2024

Dang indeed. When a video ad comes on, Spotify reports its status as "stopped", and ignores all attempts to change the volume or skip the track. So there's not much Spotifree can do about them...

from spotifree.

pedrocleis avatar pedrocleis commented on July 27, 2024

Isn't there a way to mute Spotify, on Windows we have the Sound Mixer, doesn't OS X have something like this? I think it should be a issue with OS X if we can't mute an app using a script.

from spotifree.

dceddia avatar dceddia commented on July 27, 2024

Can the Spotify status be queried? Then, if it's "stopped", mute system audio or just the Spotify app?

Muting system audio might be a little heavy-handed, but presumably if you're listening to Spotify you don't have any other audio playing. Would probably want to somehow alert the user that audio is muted, though.

from spotifree.

artemgordinskiy avatar artemgordinskiy commented on July 27, 2024

Hey guys,
Sorry to bring bad news, but none of your ideas would work, unfortunately.

Isn't there a way to mute Spotify, on Windows we have the Sound Mixer, doesn't OS X have something like this?

Nope, nothing like that. AFAIK, only possible by installing third-party kernel extensions like Soundflower, which is complicated and generally a pain in the ass, as you may imagine.

Can the Spotify status be queried? Then, if it's "stopped", mute system audio or just the Spotify app?

As I say above, there's no way to mute Spotify like that. Besides, if Spotify is "stopped", I have no way of knowing whether it's a video ad or you simply paused the music yourself to watch some Netflix.

from spotifree.

JessePeden avatar JessePeden commented on July 27, 2024

What about detecting when the video frame is displayed and active, then muting system audio only until the video frame is NOT displayed anymore? This could also be just an option that people can enable/disable on their own in case it interferes with other system operations (somehow).

from spotifree.

artemgordinskiy avatar artemgordinskiy commented on July 27, 2024

@sybercorp Spotifree uses the public AppleScript API provided by Spotify. As far as I know, it doesn't provide a way of detecting video frames. Unless you know how to do that reliably outside of AppleScript.

from spotifree.

forgetso avatar forgetso commented on July 27, 2024

Hi Artem, what about this? Set an interval to get the ID of the currently playing track. Check for this every 1s. If the ID disappears, change the spotify volume to zero. If the ID appears, change the spotify volume to the previous value. If no ID appears for 30s, clear the interval and change the spotify volume to the previous value (in this case the user has simply stopped listening). Is this perhaps too processor intensive?

from spotifree.

artemgordinskiy avatar artemgordinskiy commented on July 27, 2024

@forgetso Thanks for the suggestion, but it won't work, unfortunately. As per my second comment in this thread:

When a video ad comes on, Spotify reports its status as "stopped", and ignores all attempts to change the volume or skip the track.

The only workaround for now is to keep Spotify minimised when it's playing.

from spotifree.

forgetso avatar forgetso commented on July 27, 2024

Ah, sorry. I missed this crucial piece of information!

from spotifree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.