I uploaded a demo of Mp3MediaStreamSource to http://archive.msdn.microsoft.com/ManagedMediaHelpers but can I get it to work with my stream, can you help me?
my stream:
private static string mediaFileLocation = "http://server2.fmstreams.com:8011/spin103";
In case 1 is not requested RequestCallback:
request.AllowReadStreamBuffering = true; IAsyncResult result = request.BeginGetResponse(new AsyncCallback(this.RequestCallback), null);
In the case when RequestCallback is called 2, but I get an error: Reading is not supported in the main thread when buffering is disabled.
request.AllowReadStreamBuffering = false; IAsyncResult result = request.BeginGetResponse(new AsyncCallback(this.RequestCallback), null);
source share