Yeah, well, I said that "I bet", because I don't use Edge, so if you do and it didn't happen, then you are right.
It is currently April 24th, 2024, 11:14 am
How to hide visualizer when there's no audio playing
-
- Rainmeter Sage
- Posts: 7154
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to hide visualizer when there's no audio playing
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: How to hide visualizer when there's no audio playing
We have seen this issue with the forums from time to time, and while we can't quite put our finger on it yet, it seems to be related to using two different devices to connect to the forums from the same IP address. So like getting on with your PC and then your phone, or even just using two different browsers to connect. Somehow, the "cookie" stuff the forums are using is getting confused and befuddled about the "session id", and a conflict is created.
I can "fix" the problem for you if you are having trouble with logging on, or if you get errors when you try to save a post and such. Just get on IRC at:
https://webchat.freenode.net/?channels=#rainmeter
And let me know you are having an issue. I have a way to get to the "back end" of things and reset all sessions so you get a fresh, new cookie and all will be well.
Alternatively, I think it can help if you entirely clear your browser cache, including and particularly any cookies that are related to Rainmeter.
I'm hoping we tumble on the root cause of this soon.
I can "fix" the problem for you if you are having trouble with logging on, or if you get errors when you try to save a post and such. Just get on IRC at:
https://webchat.freenode.net/?channels=#rainmeter
And let me know you are having an issue. I have a way to get to the "back end" of things and reset all sessions so you get a fresh, new cookie and all will be well.
Alternatively, I think it can help if you entirely clear your browser cache, including and particularly any cookies that are related to Rainmeter.
I'm hoping we tumble on the root cause of this soon.
-
- Rainmeter Sage
- Posts: 7154
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to hide visualizer when there's no audio playing
I will speak for my case, and let the OP speak for his, if he deems it necessary. I didn't use multiple browsers / devices to login when the issue happened. However, I do usually "pin" the forum page in the browser and periodically refresh the page to see "what's new" - so in this case maybe the cookie expiration period had something to do with it (just a thought). That being said, as far as I recall, I think I encountered the issue even when trying to log in "cleanly" in one morning (after the computer was off). Clearing the cookies - sometimes doing it multiple times and coupled with closing and reopening the browser - seems to help (but not necessarily clearing them from the forum button at the bottom!), and also what did help - albeit for a short period of time, after which it reverted to the issue - is logging in while checking to "Remember Me". I'm not using that checkbox in my logins on various sites, but here it did help for a while when I had issues.jsmorley wrote: ↑March 19th, 2020, 12:39 pm We have seen this issue with the forums from time to time, and while we can't quite put our finger on it yet, it seems to be related to using two different devices to connect to the forums from the same IP address. So like getting on with your PC and then your phone, or even just using two different browsers to connect. Somehow, the "cookie" stuff the forums are using is getting confused and befuddled about the "session id", and a conflict is created.
I can "fix" the problem for you if you are having trouble with logging on, or if you get errors when you try to save a post and such. Just get on IRC at:
https://webchat.freenode.net/?channels=#rainmeter
And let me know you are having an issue. I have a way to get to the "back end" of things and reset all sessions so you get a fresh, new cookie and all will be well.
Alternatively, I think it can help if you entirely clear your browser cache, including and particularly any cookies that are related to Rainmeter.
I'm hoping we tumble on the root cause of this soon.
Hopefully this info will help in narrowing down the cause of this.
P.S. I guess if the posts on this topic develop, it would probably be good to create a separate thread for it, in order to not mix things up.
-
- Posts: 6
- Joined: March 18th, 2020, 3:03 pm
Re: How to hide visualizer when there's no audio playing
Woah, so many replies today haha, first of all, thanks everyone for the help! really appreciate it.
And my situation is pretty similar to Yincognito's. I use chrome, I didn't use multiple browsers or devices either, and also kept a tab open and refreshed once in a while to check for new replies.
Your change to balala's code fixed the issue I mentioned earlier! Though now the skin doesn't fade out and just disappears instantly, sometimes blinking a bit before doing so too, but that's a minor issue, not too important ^^ But I'm not sure if the first code you sent is working because the visualizer still works with all programs, not only the one specified in ProcessName dunno if it's not working at all, or if it still deactivates the skin when it is not in use despite the fact that it activates with all programs. I tried creating a new skin too with the other code you added in your edit and the problem persistseclectic-tech wrote: ↑March 19th, 2020, 2:38 amAs for your intermittent response to hide/show when paused, I would try to change balala's code to:Code: Select all
[MeasureProcess] Measure=Plugin Plugin=Process ProcessName=WinAmp.exe ; Value will be '1' when the process is running, '-1' when it is not running IfCondition=([MeasureProcess]=-1) IfTrueAction=[!DeactivateConfig "Lasix\Visualizer"] UpdateDivider=66
Code: Select all
IfCondition=([#CURRENTSECTION#]<=0.00001) IfTrueAction=[!HideFade] IfFalseAction=[!ShowFade] IfConditionMode=1 DynamicVariables=1
jsmorley wrote: ↑March 19th, 2020, 12:39 pm We have seen this issue with the forums from time to time, and while we can't quite put our finger on it yet, it seems to be related to using two different devices to connect to the forums from the same IP address. So like getting on with your PC and then your phone, or even just using two different browsers to connect. Somehow, the "cookie" stuff the forums are using is getting confused and befuddled about the "session id", and a conflict is created.
I can "fix" the problem for you if you are having trouble with logging on, or if you get errors when you try to save a post and such. Just get on IRC at:
https://webchat.freenode.net/?channels=#rainmeter
And let me know you are having an issue. I have a way to get to the "back end" of things and reset all sessions so you get a fresh, new cookie and all will be well.
Alternatively, I think it can help if you entirely clear your browser cache, including and particularly any cookies that are related to Rainmeter.
I'm hoping we tumble on the root cause of this soon.
jsmorley, thank you! Fortunately I was able to log in today, but if it happens again, I will let you knowYincognito wrote: ↑March 19th, 2020, 1:00 pm I will speak for my case, and let the OP speak for his, if he deems it necessary. I didn't use multiple browsers / devices to login when the issue happened. However, I do usually "pin" the forum page in the browser and periodically refresh the page to see "what's new" - so in this case maybe the cookie expiration period had something to do with it (just a thought). That being said, as far as I recall, I think I encountered the issue even when trying to log in "cleanly" in one morning (after the computer was off). Clearing the cookies - sometimes doing it multiple times and coupled with closing and reopening the browser - seems to help (but not necessarily clearing them from the forum button at the bottom!), and also what did help - albeit for a short period of time, after which it reverted to the issue - is logging in while checking to "Remember Me". I'm not using that checkbox in my logins on various sites, but here it did help for a while when I had issues.
Hopefully this info will help in narrowing down the cause of this.
P.S. I guess if the posts on this topic develop, it would probably be good to create a separate thread for it, in order to not mix things up.
And my situation is pretty similar to Yincognito's. I use chrome, I didn't use multiple browsers or devices either, and also kept a tab open and refreshed once in a while to check for new replies.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: How to hide visualizer when there's no audio playing
My bad! Remove "IfConditionMode=1" from the code and the fade should work as before.rina wrote: ↑March 19th, 2020, 3:40 pm But I'm not sure if the first code you sent is working because the visualizer still works with all programs, not only the one specified in ProcessName dunno if it's not working at all, or if it still deactivates the skin when it is not in use despite the fact that it activates with all programs. I tried creating a new skin too with the other code you added in your edit and the problem persists
As for activating/deactivating, I need to know media player are you using; the code will need to modified so it tests for your player process.
I have a monitoring skin that runs in the background and controls a selected visualizer. If I know which media player you use, I can suggest an edit (Code is on the Spoiler for controlling Lasix Visualizer when AIMP is running)
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to hide visualizer when there's no audio playing
In most cases, this is a much better solution, because with the code having the Process measure into the visualizer skin, it unloads the skin when there is case for this, but never reloads it. This has to be done manually. Usually not a practical approach, but obviously this depends on the needs of the user.eclectic-tech wrote: ↑March 19th, 2020, 2:38 am Alternately, you could created a new skin, have it loaded first, and use the Process measure to activate/deactivate the visualizer when your media player is running.
-
- Posts: 6
- Joined: March 18th, 2020, 3:03 pm
Re: How to hide visualizer when there's no audio playing
The fade works now, thank you!eclectic-tech wrote: ↑March 19th, 2020, 4:01 pm My bad! Remove "IfConditionMode=1" from the code and the fade should work as before.
As for activating/deactivating, I need to know media player are you using; the code will need to modified so it tests for your player process.
I have a monitoring skin that runs in the background and controls a selected visualizer. If I know which media player you use, I can suggest an edit (Code is on the Spoiler)
I use AIMP and Spotify (windows 10 store app, not the desktop version), I wonder if it's possible to make the visualizer work with both programs?
I just tried using the skin you sent and replaced winamp.exe with aimp.exe, visualizer still appears everytime there's sound coming from any program, tested it with spotify and chrome. Is there anything else I need to change for it to work?
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to hide visualizer when there's no audio playing
Unfortunately this measure this way doesn't work. In fact the measure itself does work, but the IfCondition doesn't, because the name of the [MeasureProcess] measure is used in the Ifcondition option as a section variable and this has to set on the dynamic variables, by adding a DynamicVariables=1 option to the measure. I see this option is added into the second code:eclectic-tech wrote: ↑March 19th, 2020, 2:38 am You need to create a measure that checks the Process for your media player and deactivates/activates the visualizer config. I will use WinAmp as an example, your media player process may be different, but it will be the executable file that starts your player.Code: Select all
[MeasureProcess] Measure=Plugin Plugin=Process ProcessName=WinAmp.exe ; Value will be '1' when the process is running, '-1' when it is not running IfCondition=([MeasureProcess]=-1) IfTrueAction=[!DeactivateConfig "Lasix\Visualizer"] UpdateDivider=66
and this is ok, however these are options of a different measure, right?eclectic-tech wrote: ↑March 19th, 2020, 2:38 amCode: Select all
IfCondition=([#CURRENTSECTION#]<=0.00001) IfTrueAction=[!HideFade] IfFalseAction=[!ShowFade] IfConditionMode=1 DynamicVariables=1
But in fact there is no need to add it. This IfCondition does perfectly work even without using the name of the measure as a section variable. Such in a case there is no need to set the dynamic variables. for instance the following measure perfectly work, as same as its IfCondition (note that there is no DynamicVariables=1 option):
Code: Select all
[MeasureProcess]
Measure=Plugin
Plugin=Process
ProcessName=WinAmp.exe
; Value will be '1' when the process is running, '-1' when it is not running
IfCondition=(MeasureProcess=-1)
IfTrueAction=[!DeactivateConfig "Lasix\Visualizer"]
UpdateDivider=66
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to hide visualizer when there's no audio playing
Instead of activating / deactivating the skin depending on the running / not running media player, maybe another approach is to load it when there is a sound played on the system and unload it when there is not. This can be done similarly to the case when the skin was loaded / unloaded depending on the appropriate process status. There is needed an AudioLevel plugin measure, which controls is the system is playing any sound. If it does, the Lasix\Visaualizer\Visaualizer.ini skin is loaded, otherwise the skin is unloaded.
Example:
Code: Select all
[Rainmeter]
Update=1000
[Variables]
[MeasureAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTAttack=0
FFTDecay=0
FFTSize=8192
FFTOverlap=4096
FreqMin=15
FreqMax=10000
Sensitivity=35
Bands=1
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!DeactivateConfig "Lasix\Visualizer"]
IfFalseAction=[!ActivateConfig "Lasix\Visualizer" "Visualizer.ini"]
DynamicVariables=1
[MeterDummy]
Meter=STRING
Hidden=1
Take care that if using this skin, as I said previously, the visualizer skin is loaded whenever the system is playing any audio. Not sure if this is a good approach, if it is, depends on your needs.
If you tried this out, please let me know what you think about it.
-
- Posts: 6
- Joined: March 18th, 2020, 3:03 pm
Re: How to hide visualizer when there's no audio playing
Thank you for the code! I don't mind that much if the skin loads everytime the system is playing any audio, since most of the time it is playing audio is when I'm listening to music anyways. I realise having it activated only when the music player is playing audio would be a better option, but I don't mind it this way either.balala wrote: ↑March 19th, 2020, 5:38 pm Instead of activating / deactivating the skin depending on the running / not running media player, maybe another approach is to load it when there is a sound played on the system and unload it when there is not. This can be done similarly to the case when the skin was loaded / unloaded depending on the appropriate process status. There is needed an AudioLevel plugin measure, which controls is the system is playing any sound. If it does, the Lasix\Visaualizer\Visaualizer.ini skin is loaded, otherwise the skin is unloaded.
Example:Note that this code, although is using an AudioLevel plugin measure, has the Update set to the default Update=1000, which in this case is a completely good value, because there is no need to get the audio level frequently. But this way this skin doesn't loads the CPU so much as it would with a much lower Update.Code: Select all
[Rainmeter] Update=1000 [Variables] [MeasureAudio] Measure=Plugin Plugin=AudioLevel Port=Output FFTAttack=0 FFTDecay=0 FFTSize=8192 FFTOverlap=4096 FreqMin=15 FreqMax=10000 Sensitivity=35 Bands=1 IfCondition=([#CURRENTSECTION#]=0) IfTrueAction=[!DeactivateConfig "Lasix\Visualizer"] IfFalseAction=[!ActivateConfig "Lasix\Visualizer" "Visualizer.ini"] DynamicVariables=1 [MeterDummy] Meter=STRING Hidden=1
Take care that if using this skin, as I said previously, the visualizer skin is loaded whenever the system is playing any audio. Not sure if this is a good approach, if it is, depends on your needs.
If you tried this out, please let me know what you think about it.
I just tried it and when I open rainmeter, the visualizer is indeed unloaded and loads when I first play some audio. However after I pause it the visualizer seems to stay active, as it's still visible on the loaded skins list when I right click on the rainmeter icon on the system tray?
Edit: I've noticed it sometimes unloads as it is supposed to, sometimes it stays active. Weird not a big issue though, I tested it a lil bit more and it seems like it unloads more often than not ^^"