kitarolivier / KSoft.MediaInfo

Macro Deck Plugin to set current media informations into Macro Deck variables
1 stars 0 forks source link

Does not work properly #2

Closed CrazyWolf13 closed 1 year ago

CrazyWolf13 commented 2 years ago

Would be a great plugin but sadly it doesn't catch up any media playing. Other users from the discord said the same. @kitarolivier

kitarolivier commented 2 years ago

I am on holidays now. I'll check that later.

CrazyWolf13 commented 2 years ago

Thanks for the quick response, then i wish you nice holidays.

kitarolivier commented 2 years ago

@CrazyWolf13 : tell me more about your environement (Windows/Unix..) and which music player you use ?

Did you checked that thread ?

CrazyWolf13 commented 2 years ago

@CrazyWolf13 : tell me more about your environement (Windows/Unix..) and which music player you use ?

Did you checked that thread ?

Yes i checked the thread. I have got windows 10 I tested it with various music players in the browser and i can control them via media control in macropad and the keypad keys. I tested twitch web, youtube music web youtube music app none worked.

kitarolivier commented 2 years ago

Sorry for the long delay for the answer.

I have updated macro deck and all plugins to latest version, and MediaInfo is working for Spotify (both web player and windows application), with Youtube (standard, not YT music).

I also tested with Twitch web (first use ;) ), and it's working :

image

It doesn't work with Windows media player and VLC player. Something strange : my control keys control playback and volume, but only volume is showing. No image, no music title or artist. Something has probably changed in windows ? I'm trying to inverstigate, but it can take some time.

CrazyWolf13 commented 2 years ago

Sorry for the long delay for the answer.

I have updated macro deck and all plugins to latest version, and MediaInfo is working for Spotify (both web player and windows application), with Youtube (standard, not YT music).

I also tested with Twitch web (first use ;) ), and it's working :

image

It doesn't work with Windows media player and VLC player. Something strange : my control keys control playback and volume, but only volume is showing. No image, no music title or artist. Something has probably changed in windows ? I'm trying to inverstigate, but it can take some time.

I noticed its working better than before but still inconsistently. Sometimes it does work sometimes not.

I also noticed that even with a if variable music is playing true set button to on its not always updating sometimes i have to press the button and only then it reloads. And updates.

Its like sometimes it works sometimes not also if you have multiple audio sources playing even if you paused one its not updating to the new playing source i have to manually close the old application and restart the new one.

kitarolivier commented 2 years ago

Thanks for the Feedback.

If there are multiple sources, I take the first one. If you see that when using volume or controls image when you click on the right arrow on the right in the gray rectangle, you can choose which audio sources you control. It seems. Its not a problem to add multiple variables with the sources (i.e. audio1=Youtube, audio2=Spotify, ...), but it could be more difficult to create a functional panel in macro deck to make use of these. Multiple sources can be the cause of the inconstancy, because maybe you have a source with no sound, and it take this as the default, so nothing shows up. Try to close sources so that there is not the right arrow on gray rectangle on the right, and tell me if it's more reliable.

Regards, Olivier.

CrazyWolf13 commented 2 years ago

Thanks for the Feedback.

If there are multiple sources, I take the first one. If you see that when using volume or controls image when you click on the right arrow on the right in the gray rectangle, you can choose which audio sources you control. It seems. Its not a problem to add multiple variables with the sources (i.e. audio1=Youtube, audio2=Spotify, ...), but it could be more difficult to create a functional panel in macro deck to make use of these. Multiple sources can be the cause of the inconstancy, because maybe you have a source with no sound, and it take this as the default, so nothing shows up. Try to close sources so that there is not the right arrow on gray rectangle on the right, and tell me if it's more reliable.

Regards, Olivier.

Thanks for the explanation i will try to close them. But how could i resolve the issue with the button itself not updating until i click it?

CrazyWolf13 commented 2 years ago

I just started my computer and Opera Youtube Music Web Player: Screenshot 2022-10-20 124048 Bild_2022-10-20_124119494 Screenshot 2022-10-20 124028

Here with Twitch: Screenshot 2022-10-20 124405 Screenshot 2022-10-20 124355 Screenshot 2022-10-20 124342

Even with multiple Tabs playing music it does not work.

And a soon as I start another application and start playing music all the others appear : I start Youtube Music player on opera gx nothing shows up , i start spotify desktop: the youtube music web player song shows up perfectly fine.

And as soon as a new song starts it dissapears from the macro deck and i have to restart spotify and then the youtube music player songs gets displayed again.

In conclusion i can say I need to open another music application for the macrodeck to display it.

Hope those details help. If you need more details no problem. Regards, Crazy_Wolf

kitarolivier commented 2 years ago

Thank you for the feedback.

I went to the same conclusion that Chrome (I use chrome) should be running to be able to get the information. I can't test Opera now, but chan you can test.

The plugin tries to make a connection to the service when it starts. If the connection fails, it won't try anymore. So starting Chrome or Opera should be done before launching macro desk. You can restart macro deck or disable and re-enable the plugin. Can you confirm ? I'll update the readme with the results.

I also will try to find some time to make a timer trying to reconnect if first connection fails (maybe in the settings, with an interval time, and retry count ?).

Regards, Olivier.

CrazyWolf13 commented 2 years ago

Thank you for the feedback.

I went to the same conclusion that Chrome (I use chrome) should be running to be able to get the information. I can't test Opera now, but chan you can test.

The plugin tries to make a connection to the service when it starts. If the connection fails, it won't try anymore. So starting Chrome or Opera should be done before launching macro desk. You can restart macro deck or disable and re-enable the plugin. Can you confirm ? I'll update the readme with the results.

I also will try to find some time to make a timer trying to reconnect if first connection fails (maybe in the settings, with an interval time, and retry count ?).

Regards, Olivier.

Its a bit confusing, as soon as a play music in opera nothing happens but as soon as i start spotify the plugins starts and displays the music from opera

CrazyWolf13 commented 2 years ago

Thank you for the feedback.

I went to the same conclusion that Chrome (I use chrome) should be running to be able to get the information. I can't test Opera now, but chan you can test.

The plugin tries to make a connection to the service when it starts. If the connection fails, it won't try anymore. So starting Chrome or Opera should be done before launching macro desk. You can restart macro deck or disable and re-enable the plugin. Can you confirm ? I'll update the readme with the results.

I also will try to find some time to make a timer trying to reconnect if first connection fails (maybe in the settings, with an interval time, and retry count ?).

Regards, Olivier.

Maybe an easy fix would be zo add an action to reload the music fetcher, then i would configure this to always reload when the time variable changes.

CrazyWolf13 commented 1 year ago

@kitarolivier is this possible?

kitarolivier commented 1 year ago

Hello Crazy Wolf,

Sorry for the long delay, but I had almost no time the last month.

I will try to implement a timer and and "retry" button in the settings page before 2023 :)

CrazyWolf13 commented 1 year ago

Hello Crazy Wolf,

Sorry for the long delay, but I had almost no time the last month.

I will try to implement a timer and and "retry" button in the settings page before 2023 :)

Hey there, no problem take your time!

Maybe you could as well use the WebNowPlaying dll which servs exactly this purpose, its a browser addon and it's mainly used in Rainmeter. The project is as well on Github.

https://github.com/tjhrulz/WebNowPlaying

kitarolivier commented 1 year ago

I will check that :)