I need to catch an event when headphones are connected to tablet or desktop PC in my UWP app. ARM version of the app(for Mobile family of UWP devices) catches such event as Windows.Phone.Media.Devices.AudioRoutingManager.GetDefault().AudioEndpointChanged
event. Is there anything similar for x86 and x64 apps?
Asked
Active
Viewed 271 times
0

Andrew Nikolin
- 297
- 1
- 4
- 18
-
1Hi, did you see this post? http://stackoverflow.com/questions/16538007/how-to-detect-unplugged-headphone-jack-in-winrt – Daniel Krzyczkowski Apr 29 '16 at 04:28
-
@danny just checked it and still not sure what the real answer is. Will it work if I use information from the link provided there http://msdn.microsoft.com/en-us/library/ie/windows.devices.enumeration.deviceinformation.createwatcher ? – Andrew Nikolin Apr 29 '16 at 12:37
-
1I did not test it but I heard that it should work. – Daniel Krzyczkowski Apr 30 '16 at 13:28
-
@danny Alright, thanks! Will try it and post an update – Andrew Nikolin Apr 30 '16 at 22:02
-
@danny Awesome, that solution worked for me. Thanks a lot! – Andrew Nikolin May 05 '16 at 16:02
-
1I am happy :) if I could ask to vote for my comment I would be grateful, thanks! ;) – Daniel Krzyczkowski May 05 '16 at 16:11
-
@danny Already done it ;) – Andrew Nikolin May 05 '16 at 21:31