Pretty simple question, but I haven't been able to find an answer. All I want to do is disable the media player controls that appear on the Windows 10 lock screen. The screenshot below shows what controls I mean:
In Chrome go to
chrome://flags/#hardware-media-key-handling and set that to "Disabled":
I was able to find a way to hide this feature per-browser. This is part of the Media Session API that browsers are implementing lately. You can disable it by going to your browser's flags config page and disabling media session service.
If you only need to disable the media controls overlay for Spotify (this seems to be the case), then you can do it from the Spotify side of things by going to:
Spotify (app) -> Edit -> Preferences -> Display -> "Show desktop overlay when using media keys"
Otherwise, I don't know how to help you
Sourced from here.
Use VLC media player they don't use windows notification. Does your command in background by media key