Playing audio in the background (Windows 8)

My application has a sound tag that plays an MP3 file. When I minimize the application, the sound stops. So, I want to know how to save the game.

PD: I use JavaScript.

+3
source share
2 answers

See this win8 developer blog post. It discusses (among other things) background sound support in Windows 8.

+1
source

As described in this article: http://msdn.microsoft.com/en-us/library/windows/apps/hh452730.aspx

You can add the msAudioCategory attribute to your <audio> for more functionality.
For instance:

<audio msAudioCategory="BackgroundCapableMedia" controls="controls"> 
<source src="song.mp3"/> 
</audio>
+1
source

All Articles