Contents tagged with MediaElement

  • Windows Store App Gotcha: Background Audio Tasks, Media Elements and AutoPlay

    Remember a few posts back, when I was talking about how to simulate suspend events because my online radio app wasn't passing the WACK? It turned out that it's not really anything to do with the suspend or resume code I wrote, but that having a Background Audio Task / MediaElement with AutoPlay="true" causes the WACK to fail that test, all the time. It also turns out that people have already … more

  • Pro-Tip: How To Stop/Start Background Streaming Audio In Windows 8

    In my spare time, I've been working on a little online radio streaming app for Windows 8, based on the sample project from Microsoft. What I very quickly discovered was that calling .Stop() and .Pause() on MediaElements that were reading from streams didn't actually do anything. My first cut at a solution was to set the MediaElement's source to null, and then recreate the source in lieu of Stop / … more

  • 1