It is currently August 9th, 2022, 10:49 pm

Media Player Plugin

Share and get help with Plugins and Addons
i2002
Posts: 10
Joined: December 6th, 2021, 10:07 am

Re: Media Player Plugin

Post by i2002 »

balala wrote: December 13th, 2021, 7:02 pm This is what I do:
  • Activate the skin (Skins\MediaPlayer\MediaPlayer.ini). Both Groove Music and YouTube are closed.
  • Launching any of the above two players (Groove or YouTube in Edge).
  • The skin doesn't show the proper information. In order to get this, I have to refresh the skin.
Hi, sorry for late reply.
Unfortunately, if I take the same steps it updates automatically for me. I really don't understand why it wouldn't update the info for you.
The things that could happen are it would either crash (and you would see an error in Rainmeter) or hang and Rainmeter would become unresponsive (because it waits for the plugin to provide the updated info, but the plugin doesn't respond).
But the fact that right click and refresh works means that the plugin "works" as intended, but windows API gives wrong info.

We can test this with the modified plugin attached below, which shows debug info about the update cycles. It should cycle (at approximatively 1 second) between 1 and 2 when idle, 5 and 6 when media active and 3 and 4 when errors caught.
tmp_debug.png
If it doesn't change it means that there is something with Rainmeter that prevents updating.
if it cycles only between 1 and 2 even if there is a player active it means that the windows api gives wrong data for some reason or another.

Also, I'm assuming you have:
a fairly recent windows 10 version (you can see that in settings -> system -> about) (I have 21H1, but the api was added in 1809, so any version higher than that should be ok) (also idk if the api should behave differently in pro versions, I can't test this),
recent rainmeter version (I have 4.5.7),
vc++ runtime higher than 14.20 (in settings -> apps and features).
tmp_debut2.png
It really bugs me why it doesn't work but it also doesn't crash.
You do not have the required permissions to view the files attached to this post.
i2002
Posts: 10
Joined: December 6th, 2021, 10:07 am

Re: Media Player Plugin

Post by i2002 »

ikarus1969 wrote: December 13th, 2021, 3:58 pm I tried Youtube and it works! So it depends on the program if it supports that Windows-api. Chrome does it obviously. WMP and VLC not (yet?). So if i want to use your plugin, i had to find a compatible player. I'm happy i got it working in some sense now - thank you all for your hints and help!
Glad it worked.
So I guess initially the problem was with the runtime libraries (the error 126), but then just the fact that WMP doesn't support the win api.
I was also surprised when I discovered that VLC doesn't support the api. Maybe it's something you can enable in vlc settings, I don't know. WMP obviously can't work, because it's software from Windows 7 and they don't have any reason to update it to support win 10 apis.
User avatar
balala
Rainmeter Sage
Posts: 14448
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Media Player Plugin

Post by balala »

i2002 wrote: December 18th, 2021, 10:35 am Unfortunately, if I take the same steps it updates automatically for me. I really don't understand why it wouldn't update the info for you.
Now it does for me as well. MY BAD: used not the latest Rainmeter. I realized this only when I read your reply. Accordingly when I updated Rainmeter, the plugin and the skin instantly started to work as expected.
Sorry, this was my fault. Again! This is not the first and I hope nor the last case I make this extremely stupid mistake.
Apologize I confused you. Entirely my bad.

Thank you for the plugin. Now that it does work well, it proves to be extremely useful for me. As said, it is the only plugin which can work with the new Groove Music of Win 10.
i2002
Posts: 10
Joined: December 6th, 2021, 10:07 am

Re: Media Player Plugin

Post by i2002 »

balala wrote: December 18th, 2021, 7:17 pm Now it does for me as well. MY BAD: used not the latest Rainmeter. I realized this only when I read your reply. Accordingly when I updated Rainmeter, the plugin and the skin instantly started to work as expected.
Sorry, this was my fault. Again! This is not the first and I hope nor the last case I make this extremely stupid mistake.
Apologize I confused you. Entirely my bad.

Thank you for the plugin. Now that it does work well, it proves to be extremely useful for me. As said, it is the only plugin which can work with the new Groove Music of Win 10.
Yeey, I'm glad that it finally works for you and now you can use it with Groove.
Don't worry, mismatch between versions of dependencies seems to be a fairly common compatibility problem.
This turned out to be a great learning experience for me, so I thank you for having patience while debugging this problem together. :thumbup:
I thought that it shouldn't matter if you have a bit older Rainmeter versions, but it seems it does.
User avatar
balala
Rainmeter Sage
Posts: 14448
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Media Player Plugin

Post by balala »

i2002 wrote: December 19th, 2021, 10:07 pm Don't worry, mismatch between versions of dependencies seems to be a fairly common compatibility problem.
I have such problems extremely rarely. However did have a few times in past.
i2002 wrote: December 19th, 2021, 10:07 pm This turned out to be a great learning experience for me, so I thank you for having patience while debugging this problem together. :thumbup:
I thank you for assisted my in debugging. Much appreciated.
i2002 wrote: December 19th, 2021, 10:07 pm I thought that it shouldn't matter if you have a bit older Rainmeter versions, but it seems it does.
This time it did matter indeed.