c# - How to detect unplugged headphone jack in WinRT? -
is there way notified whenever headphone jack unplugged in winrt app? want able pause mediaelement playback when happens prevent sound leaking out through loudspeakers.
jack detection notification exposed through immnotificationclient::ondevicestatechanged. tried on win8 desktop, ondevicestatechanged gets called device_state_unplugged , device_state_active when (un)plugging device. sadly part of wasapi documented desktop guess there's no way in winrt.
Comments
Post a Comment