Reputation: 1637
Please, Is there someone there that can help me? I am trying to play a stream from a ShoutCast server on Windows Phone RunTime 8.1 and I had no success so far.
My company has 3 stream servers; 1 IceCast and 2 ShoutCast.
This is my code for IceCast server:
Uri audioSourceUrl = new Uri(url,UriKind.RelativeOrAbsolute);
BackgroundMediaPlayer.Current.SetUriSource(audioSourceUrl);
BackgroundMediaPlayer.Current.Play();
I set the url to the background appication the app has and it is done. But with shoutcast I cannot do that.
I've tried to change the url with no success to :
I read I have to manipulate the stream to get it working but I have no idea.
Can someone show me a light?
Thank you in advance!
Upvotes: 1
Views: 736
Reputation: 21936
Shoutcast format isn’t supported on the platform. You can support the protocol yourself by developing a custom media stream source (in Silverlight) or custom media source (Windows RT). However both tasks are hard.
There’re several third-party Silverlight libraries implementing media stream source.
Upvotes: 1