Windows Store App C# - is it possible to play sound even if the app is multitasked? RRS feed

  • Question

  • let's say I have a MediaElement in my app:

    <MediaElement x:Name="myMediaElement" HorizontalAlignment="Left" Height="0" Margin="0" VerticalAlignment="Top" Width="0" Source="Assets/alarm.mp3" IsLooping="True" AutoPlay="False"/>
    myMediaElement.Play() will play the sound. However, when the app is minimized (go back to start menu or do something else), the sound will automatically stopped. I need to go back to the app again to continue the sound. Is it possible to play the sound even the focus of computer is not in the app?

    Monday, May 13, 2013 8:52 AM


All replies