最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how can i retrieve the data from the windows media widget in python? - Stack Overflow

programmeradmin1浏览0评论

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 1
Add a comment  | 

1 Answer 1

Reset to default 0

Uhm 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.

发布评论

评论列表(0)

  1. 暂无评论