Sunday, 15 June 2014

c# - Windows store app "pauses" when minimized -



c# - Windows store app "pauses" when minimized -

i have windows store app. app plays sound in mediaelement passing stream , activity on screen progress of audio. when app minimized sound "pauses" , activity , when app maximized resumes. when app minimized "onsuspending" event not triggeresd (i set break point on function , did not break).

how can stop app getting "paused" when minimized.

to maintain sound playing in background need declare sound background task , handle systemmediatransportcontrols buttons. described in detail on msdn @ how play sound in background (xaml)

your onsuspending event didn't nail because apps don't suspend when beingness debugged. visual studio has toolbar buttons available when debugging mimic suspend , resume. see how trigger suspend, resume, , background events in windows store apps

c# windows-8 windows-store-apps windows-8.1

No comments:

Post a Comment