Question

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,

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top