Playing incoming audio stream on different pages


  • Hi,
    I am building some Shared Project which is connected with Playing incoming internet radio stream.
    Currently I ve got a problem with Playing this stream on different pages.
    I made some background task and it works fine I can easily minimize my app but when I am moving to different page where the user will read the RSS feed (Frame.Navigate some DataContext which contains the RSS),the Media Element stop playing.

    I try to find some solution on different forums but I didn't find any which will be the best for my.

    Thank you for your help

    Monday, October 20, 2014 9:26 PM


  • Hello,

    You need to add the MediaElement to a root XAML element that will exist for the lifetime of the app. You can do this in Runtime apps by adding the element to the app.xaml. You can also create a page, add the MediaElement and then add a Frame to the page for navigation.

    I hope this helps,


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, October 21, 2014 12:00 AM