你好,
这个需求是可以实现的,我们需要使用AudioRoutingManager 这个类,处理AudioEndPointChanged 事件:
http://msdn.microsoft.com/en-us/library/windows.phone.media.devices.audioroutingmanager.audioendpointchanged.aspx
It occurs when the audio endpoint currently in use has changed, or when the set of available audio endpoints has changed.
使用AudioRoutingManager.GetAudioEndpoint()方法获取当前的AudioRoutingEndpoint
类型,从而识别是否有耳机插入
#AudioRoutingEndpoint enumeration
http://msdn.microsoft.com/en-us/library/windows.phone.media.devices.audioroutingendpoint.aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.