locked
How to play sounds periodically on Windows Phone 7.1 even if app is closed? RRS feed

  • Question

  • Hi everyone,

    With the new WP 7.1 Microsoft added Background Agent to play sound files from within your application, and TaskScheduler Agent to run tasks periodically.

    However

    @1 I want to play sounds periodically even if my application is closed. 

    @2 TaskScheduler does not allow to play audio via: 

    (http://msdn.microsoft.com/en-us/library/hh202962%28v=vs.92%29.aspx)

         XNA sound effects,

         BackgroundAudioPlayer

         MediaElement

    @3 TaskScheduler runs for a specific time with a FIXED interval of 30 minutes . I need to play a sound every hour on the hour (i.e. play bessie.wav every hour between 8am-9pm)

    @4 Alarms can have a sound set to them, but there is no way to customize that dialog to not show and not need snooze or dismiss functionality.

    Can anyone assist with this?

    What are your thoughts?

    Thanks!

    roy@sbsh.net

    Friday, June 3, 2011 10:43 PM

All replies