Play audio in background by use BackgroundCapableMedia
问题 In the windows8 Developer preview we can use this code to play audio in background: mediaElement.AudioCategory = AudioCategory.Media; In the windows8 Customer perview, It seems that we should use AudioCategory.BackgroundCapableMedia instead of AudioCategory.Media mediaElement.AudioCategory=AudioCategory.BackgroundCapableMedia; and I also Declare a background task in appxmanifest <Extension Category="windows.backgroundTasks" EntryPoint="TestApp.App"> <BackgroundTasks> <Task Type="audio" /> <