Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed clarification on using audio on button click, background audio, etc in Windows Phone
    text
    copied!<p>This is a WP 7.1/7.5/Mango Silverlight app.</p> <p>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.</p> <p>So I implemented that using MediaElement as mentioned here: <a href="https://stackoverflow.com/questions/8765671/windows-phone-7-1-media-element-not-playing">Windows Phone 7.1 - Media Element not playing</a></p> <p><strong>Issue:</strong> 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.</p> <p>Certification Requirements (6.5 - Non Music..) is very confusing: <a href="http://msdn.microsoft.com/en-us/library/hh184838(v=vs.92).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/hh184838(v=vs.92).aspx</a></p> <p><strong>Questions:</strong></p> <p>1: Do I need to ask user permission in this case (using a pop-up) before playing my audio? </p> <p>2: Req 6.5.3 says no need to ask permission for non-interactive audio. What is that?</p> <p>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?</p> <p>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: <a href="http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx#BKMK_Media" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx#BKMK_Media</a> Is this the only way I can do?</p> <p>Any suggestions really appreciate.</p> <p><strong>Note:</strong> 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.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload