DubyaDude / WindowsMediaController

Allows developers to more easily get information from and interact with the Windows 10/11 OS media interface. (Also referred to Windows System Media Transport Controls (SMTC))
https://nuget.org/packages/Dubya.WindowsMediaController
MIT License
129 stars 9 forks source link

MediaMuted Information (if possible) #5

Closed Aytackydln closed 2 years ago

Aytackydln commented 2 years ago

Hello, I'm the current maintainer of Aurora-RGB and also making a plugin for Artemis-RGB. I will also reference this repository on those projects. https://github.com/Aurora-RGB/Aurora https://github.com/Aytackydln/Artemis.MediaInfo https://github.com/Artemis-RGB/Artemis

Thanks for the library, RGB devices will be able to react depending on media :)

I wanted to add media muted information too but library didn't expose that. I also noticed playback information updates whenever I mute/unmute media so I thought it would be possible to add to this library.

DubyaDude commented 2 years ago

I also noticed playback information updates whenever I mute/unmute media so I thought it would be possible to add to this library.

What media player showed off this behavior?

Aytackydln commented 2 years ago

That was Opera GX, I believe chromium browsers do that

DubyaDude commented 2 years ago

Could not reproduce with Chrome + Spotify and Chrome + Youtube. It's very well possible that either the browser/site you used changes state when muted for efficiency purposes, though this is just my educated guess.

Upon further poking around, there is no volume field included in Microsofts "GlobalSystemMediaTransportControlsSession" system which is what the wrapper is currently for.

If there's documentation I missed, please let me know. But in terms of grabbing volume data, this wrapper would need to be used in tandem with a tool that grabs per-app volume data (like NAudio).

Aytackydln commented 2 years ago

Alright, thanks for looking into it. Aurora already uses NAudio, people can use that then.