Buffering- WinPhone: Streaming gets stuck saying its bufferring


I am using Phonesm for my Xamarin project where i need to stream live video. Live streaming is in m3u8 format.
I have integrated Phonesm, At start of streaming, it works properly. But after few minutes, it gets stuck. I checked output window. It says bufferring and shows percentage.

I have high speed internet connection but still it takes time for buffering. Buffering happens after regular intervals. I want to know is their any way to do continuous streaming, without getting paused.
Please help me.

Thanks in advance.


henric wrote Dec 12, 2015 at 1:26 PM

This can happen if BufferInstances are getting lost (typically, when TsPesPackets gets stuck somewhere). Eventually, BufferingManager will stop network reads to avoid eating all available memory. If that is the case, it should be obvious from the debug trace that network reads are getting throttled.

If things are starting and stopping and not simply stuck in "buffering", then the parameters in DefaultBufferingPolicy might be inappropriate for your stream. The BytesMaximum should roughly match DurationBufferingMax for the stream's bitrate. Since DefaultBufferingPolicy doesn't know the bitrate, the BytesMaximum may be too low for your stream.