Buffering percentage less than 100

Feb 25, 2013 at 5:34 PM
Hi,

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 : http://198.154.106.102:8419

I tried this on multiple urls.

Thanks
Jan 29, 2014 at 1:02 PM
Edited Jan 29, 2014 at 1: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 9: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???

Thank


John
Feb 3, 2014 at 10: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 2:29 PM
Doh! Why didn't I think of that!?!? Lol

Thank you for replying, it is most appreciated :)

John
Feb 3, 2014 at 4: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