c# - Access Stream Buffer HttpWebRequest -


I am trying to stream the radio in a Windows Phone 7 app, and for this I use ManagedMediaHelpers . To get continued stream work, HttpWebRequest but does not call callback urls due to the continuous stream.

How do I use the stream without the help of callback url? On some other posts some said that o need to use reflection but does anyone know the hot for implementing it? Here is my code:

  req = (HTTP webbrum) WebRequest.Create ("http://streamer-dtc-aa01.somafm.com:80/stream/1018"); // If this is incorrect, then it will set fire to callback url //, but the mediastream SSRO will put an exception / that it needs to be corrected again. AllowReadStreamBuffering = true; IAsyncResult Results = req.BeginGetResponse (RequestComplete, blank); HTT Web Response as Private Zero RequestComplete (IAsyncResult R) {HttpWebResponse resp = req.EndGetResponse (R); Stream str = resp.GetResponseStream (); Mss = new MP3 media stream source (str, resp.ContentLength); Deployment Present. Dispatcher. Bjinninwock (() => {this.me.volume = 100; this.me.SetSource (mss);}); }    

There was a single issue, so here's how I solve it

This may also be a problem with your URL - make sure that if you run a request outside the application, then you are getting the required data.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -