Can't stream audio over HTTPS in WP8. Worked in WP7.


  • I have upgraded my project from WP7 to WP8, but it'll no longer play MP3 files. They are streamed from a remote server, but an example URL is

    The code used to run fine under WP7, but now gives an error a COM error HRESULT = 0x80072F76. 

    Doing quick search, that kind of implies something's wrong with the HTTP headers of the stream coming from Soundcloud - obviously something which is out of my control. Or is that a red herring?

    I am basically doing the following to play the track:

                  BackgroundAudioPlayer.Instance.Volume = 1; 
                  BackgroundAudioPlayer.Instance.Track = playlistTrack;     

    playlistTrack is a track configured with the track name, and URL as above.

    If anyone has any ideas then that'd be much appreciated. Thanks!

    Chris Field - Mehdoh for Windows Phone

    • Edited by Chris Field Sunday, November 11, 2012 7:58 PM
    Saturday, November 10, 2012 5:58 PM

All replies

  • I have an update on this... if I use HTTP instead of HTTPS, it works...  Erm... WHY? :(

    SoundCloud provides the URL as HTTPS... I could change the URL to HTTPS, but that's not explicity supported by them so is a fragile solution. I am keen to know why it no longer works over HTTPS.

    Chris Field - Mehdoh for Windows Phone

    • Edited by Chris Field Monday, November 12, 2012 8:17 AM
    Sunday, November 11, 2012 7:57 PM
  • Does anyone at MSFT know why this is the case? It's the last thing holding the release of my WP8 app up now.

    Chris Field - Mehdoh for Windows Phone

    Tuesday, November 13, 2012 3:47 PM
  • We are currently investigating.

    Suspected causes are:

    • Redirection from https to http Uri.
    • Firewall or web filter configuration on server side blocking access.


    Thursday, November 15, 2012 3:35 PM
  • Is there any update on this Eric? I have now had to remove my app from being available for WP8 devices due to compatibility issues, pending a proper WP8 update. Unfortunately I can't submit a WP8 update until there is a resolution to this (and a few other things too!)

    Chris Field - Mehdoh for Windows Phone

    Thursday, November 22, 2012 8:09 AM
  • I am having the exact same problem. I am also in the process of building a WP8 update for my Dance Hub app, which uses Soundcloud to play tracks. And im running into the same problem as Chris.

    Is there any update on this issue? How can I resolve it? Getting the BackgroundAudioPlayer to work is mandatory for my app.

    Friday, January 04, 2013 5:04 PM
  • In the end I had to replace HTTPS with HTTP in order to get soundcloud streams to play. Seems to work OK for now, but it's far from ideal imho.

    Chris Field - Mehdoh for Windows Phone

    Friday, January 04, 2013 5:20 PM
  • Thanks Chris I am doing the same right now.
    Sunday, January 06, 2013 8:03 AM
  • Hi Chris Field And Jochem Toolenaar,

    I am doing the same with soundcloud api because I need to one POC but I am unable to play sound with soundclient stream. I have tried MediaElement and give source but it gives an error Invalid_ag_expression and I tried the audio playback agent and give the https track url and even plain http url too but unable to play sound from this stream. Can you please help me how you did that. Your help will be highly appreciated.


    Sunday, January 06, 2013 3:49 PM
  • I have noticed the same issue and done some investigation - here's the thread for that:

    Seems this issue affects both audio player and BackgroundFileTransfer.

    • Edited by Johan Paul Monday, January 07, 2013 4:41 PM
    Monday, January 07, 2013 4:20 PM