This is a WP 7.1/7.5/Mango Silverlight app.
I have a requirement where I need to play sounds on image click (3-4 images) and also an audio plays when user navigates to the page first time.
So I implemented that using MediaElement as mentioned here: Windows Phone 7.1 - Media Element not playing
Issue: Now I was testing the app. I started playing radio on the phone. Then started my app. Radio was still playing. Now when I navigated to the page that has audion on page Load, radio stopped.
Certification Requirements (6.5 - Non Music..) is very confusing: http://msdn.microsoft.com/en-us/library/hh184838(v=vs.92).aspx
Questions:
1: Do I need to ask user permission in this case (using a pop-up) before playing my audio?
2: Req 6.5.3 says no need to ask permission for non-interactive audio. What is that?
3: If I have to ask the user and if user selects No i.e. not to stop thier radio(or other music), then the only was for me to still allow to play my audio is using SoundEffect insted of MediaElement. So am I doing wrong with MediaElement?
4: I am also planning to add a background/ambience music to my app in future once I am done setting up above audios. Req 6.5.4. says - The SoundEffect class must not be used to play a continuous background music track in an application. No so in that case I am left with MedieElement only. Here's rhe Sound Sample(second one) I found: http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx#BKMK_Media Is this the only way I can do?
Any suggestions really appreciate.
Note: The button click and page load audio files are short clips(max 5 secs) e.g. How are you?, What's your name? It's so much fun here, etc. So they are not songs.