Configure buffering

You can set different buffering policies in the PSDK, consisting of the initial buffer time and the buffer time, depending on your needs, such as the device, the operating system, or the network conditions.

When the media player buffer reaches the initial buffer time, playback begins.

This improves the start-up time because the player does not wait for the entire buffer to fill before starting playback. Instead, after a few seconds are buffered, playback begins. While the video is being rendered, the player continues buffering new fragments. There is a risk, however, when network conditions are poor, that playback could be interrupted by periods of buffering, instead of having a long initial buffering time before starting playback (when the initial buffer time has a high value).

The player buffers fragments until it reaches the buffer time value. This is actually the minimum buffer length, so the actual buffer length can exceed this value.

A maximum buffer length, above which the buffer will not go, is calculated from the minimum length.