setWantedBufferAhead
Description
Set the buffering goal, as a duration ahead of the current position, in seconds.
Once this size of buffer reached, the player won't try to download new segments anymore.
By default, this value is set to 30
.
In DirectFile mode (see loadVideo options),
this method has no effect.
Syntax
player.setWantedBufferAhead(bufferGoal);
-
arguments:
- bufferGoal
number
: Ideal amount of buffer that should be pre-loaded, in seconds.
- bufferGoal