I am trying to integrate the current media name/artist in my python app and I can't seem to get it to work.
I did the same thing with iTunes with almost no issues whatsoever but for some reasons I can't manage to get the correct instance of windows media player
wmp = win32com.client.gencache.EnsureDispatch("WMPlayer.OCX")
gets me a valid wmp instance but when I try to get the current media using
wmp.currentMedia
It returns nothing whatsoever and getting the volume like this:
wmp.settings.volume
returns a different volume than my actual opened windows media player volume.
Is there something I'm not aware of? I tried using WMPlayer.OCX.7 as well, but that doesn't work.