glzr-io / zebar

Zebar is a tool for creating customizable and cross-platform taskbars, desktop widgets, and popups.
GNU General Public License v3.0
1.11k stars 51 forks source link

feat: add media provider #126

Closed Irilith closed 1 month ago

Irilith commented 1 month ago

Add media provider using the Windows APIs to manage media output information, including metadata like title, artist, album title, and play status.

Output

Its only works in Windows as you may notice since this use Windows APIs

Preview: https://github.com/user-attachments/assets/b85cf740-0ec6-4916-926a-d68ca45a170f

Irilith commented 1 month ago

its may close #73 , may not ,as it doesn't have pause/unpause, previous and next call

lars-berger commented 1 month ago

@HolbyFPV’s actively working on the same feature rn at feat/media-provider. Will DM him and see if we can combine these 2 somehow. This one uses polling whereas the feat/media-provider implementation uses event listeners, so would favour towards the listeners approach since it updates immediately on changes

Irilith commented 1 month ago

I can close my PR if there's a conflict and wait for his approach. Just let me know what you decide, thank you.

HolbyFPV commented 1 month ago

Thanks for this PR @Irilith

As lars mentioned, I'm currently working through this feature. I haven't gotten to the client-api side yet, so your code will come in handy. If it's cool with you, we can close this PR and I'll credit you when I make my pull.

Irilith commented 1 month ago

Sure m8