A remote bluetooth headset is playing audio from computer. E.g., browser, spotify audio to a bluetooth headset. We want to stop/ pause music/audio from our app. How can we do it?
Searched for methods but did not find solution.
A remote bluetooth headset is playing audio from computer. E.g., browser, spotify audio to a bluetooth headset. We want to stop/ pause music/audio from our app. How can we do it?
Searched for methods but did not find solution.
UWP apps are running in sandbox which are isolated from system, UWP cannot access other app's process and is restricted when accessing system resources. So, you can't stop/pause music/audio played by system or other Apps.
You can use Win32 API keybd_event with VK_MEDIA_PLAY_PAUSE
to simulate pause key input.