Windows Phone 8 API for Headset control events [closed]

有些话、适合烂在心里 提交于 2019-12-24 08:39:45

问题


Is there an API for Windows Phone 8 which allows to receive headset events, such as when a user presses the play/stop button? I would be interested in these events to react in my application accordingly.

Regards,


回答1:


If you are in control of the audio/video on the device at this point (via MediaElement or BackgroundAudioPlayer), then play/pause events will be raised in your code via MediaElement or BackgroundAudioPlayer.

If you are not in control of the audio/video, then it is not possible to capture these events.



来源:https://stackoverflow.com/questions/17607626/windows-phone-8-api-for-headset-control-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!