Buffering percentage less than 100

Feb 25, 2013 at 4:34 PM

I just compiled the code on 2012 for WP7.1 devices, the issue is
If i debug the code with breakpoints the DLL works fine and it starts playing, but if I just played without breakpoints, many times it is stuck in loop and just keeps printing "6 Buffering percentage less than 100" in output.

Stream Url :

I tried this on multiple urls.

Jan 29, 2014 at 12:02 PM
Edited Jan 29, 2014 at 12:02 PM
I Had the same problem. Tinkering with the code solved my problem.

In file ShoutcastMediaStreamSource.cs on line 300 I've change the bufferprecentage to a value less then 100.
//while (bufferingPercentage < 100)
while (bufferingPercentage < 90)
This solved my problem. Stream is playing smoothly and crisp. :)

(HTC8X running WP8)
Feb 2, 2014 at 8:48 PM
I was getting the same buffering problem. I tried:
while (bufferingPercentage < 90)
Also, tried other values, it still constantly gives "Buffering percentage less than 100"....

Any other ideas what is causing this???


Feb 3, 2014 at 9:32 AM
Hi John,

The debug message is not adjusted to your new value.. ;)
while (bufferingPercentage < 90)
    Debug.WriteLine("Buffering percentage less than 100");
So, as long as your buffering percentage is less then 90 you'll get this message.
To represent an actual value you could do someting like
while (bufferingPercentage < 90)
    Debug.WriteLine(String.Format("Buffering percentage less than 90. (Actual value {0})", bufferingPercentage));
Feb 3, 2014 at 1:29 PM
Doh! Why didn't I think of that!?!? Lol

Thank you for replying, it is most appreciated :)

Feb 3, 2014 at 3:08 PM
I managed to sort that out, now I get "3108 MpegFrame's FrameSize must be greater than zero." in the CloseMedia now...

I'll have to find some other way to stream the stream I want. Time to google a lot more, lol