i'm trying to retrieve the data of the the media widget that shows what song, video or any media is currently playing on windows. what tool can i use to do that ? i tried using winrt but this package is deprecated since python 3.11 i tried installing winrt, but even after switching to python 3.9, i get the same error:
>>C:\Users\****\AppData\Local\Programs\Python\Python39>pip install winrt
>>ERROR: Could not find a version that satisfies the requirement winrt (from versions: none)
>>ERROR: No matching distribution found for winrt
maybe i'm doing something wrong with the pip installing or maybe an alternative will work best. what should i do ?
i'm trying to retrieve the data of the the media widget that shows what song, video or any media is currently playing on windows. what tool can i use to do that ? i tried using winrt but this package is deprecated since python 3.11 i tried installing winrt, but even after switching to python 3.9, i get the same error:
>>C:\Users\****\AppData\Local\Programs\Python\Python39>pip install winrt
>>ERROR: Could not find a version that satisfies the requirement winrt (from versions: none)
>>ERROR: No matching distribution found for winrt
maybe i'm doing something wrong with the pip installing or maybe an alternative will work best. what should i do ?
Share Improve this question asked Mar 30 at 14:08 mallowwmalloww 11 Answer
Reset to default 0Uhm if you're interested in audio specifically you can try installing pycaw to access the Windows Audio Session Manager
or if you have linux setup in handy then you can also try python-mpris2 it doesn't work well on windows but it supports Windows Media Control API.