Playing a HTML audio url

Topics: Windows Phone 8
Mar 25, 2014 at 10:28 PM
Hi, I can play hls on my wp8 app. But also I need to play radio channel urls like this ->"http://46.20.4.58:8030/" in my app. So is there any way to do this? Thanks
Mar 26, 2014 at 1:48 AM
wp8 player framework can play hls???I've always thought can only play the HSS。。。
Mar 27, 2014 at 4:21 AM
Edited Mar 27, 2014 at 4:22 AM
Bajo wrote:
Hi, I can play hls on my wp8 app. But also I need to play radio channel urls like this ->"http://46.20.4.58:8030/" in my app. So is there any way to do this? Thanks
Take a look at 3vix or my phonesm for playing HTTP Live Streaming. Your example URL can also be played with phonesm, but may require using the latest source and mucking with some defaults. I changed HlsView.WP8's MainPage.InitializeMediaStream() to,
        void InitializeMediaStream()
        {
            if (null != _mediaStreamFacade)
                return;

            _mediaStreamFacade = MediaStreamFacadeSettings.Parameters.Create(_httpClients);

            _mediaStreamFacade.Builder.RegisterSingleton<IWebReaderManager, HttpWebRequestWebReaderManager>();
            _mediaStreamFacade.Builder.RegisterSingleton<IHttpWebRequests, PclHttpWebRequests>();

            _mediaStreamFacade.ContentType = ContentTypes.Mp3;

            _mediaStreamFacade.StateChange += TsMediaManagerOnStateChange;
        }
You may also want to take a look at Shoutcast MediaStreamSource.
Mar 28, 2014 at 1:50 PM
Thank you henric. It works and I also try in SamplePlayerWP8 with changing the URL "http://46.20.4.58:8030" to "http://46.20.4.58:8030;stream.mp3". It also works.