The bufferingTime property specifies or retrieves the amount of time in milliseconds allocated for buffering incoming data before playing begins.
This property is a read/write Number (long) ranging from zero to 60,000 with a default value of 5,000.
The following JScript example uses Network.bufferingTime to specify the number of seconds allocated for buffering incoming data. The information is retrieved from an HTML TEXT INPUT element created with ID = "bufText". The Player object was created with ID = "Player".
<!-- Create a BUTTON element to change the bufferingTime value. --> <INPUT TYPE = "BUTTON" NAME = "bufTime" ID = "bufTime" VALUE = "Change Buffer Time" onClick = " /* Test whether the user entered a valid value. */ if (bufText.value >= 0 & bufText.value <= 60) Player.network.bufferingTime = bufText.value * 1000; else alert('Buffering time must be between 0 and 60.'); ">
|Windows Media Player version 7.0 or later.|