Network.bufferingTime

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The bufferingTime property specifies or retrieves the amount of time in milliseconds allocated for buffering incoming data before playing begins.

Syntax

player.network.bufferingTime

Possible Values

This property is a read/write Number (long) ranging from zero to 60,000 with a default value of 5,000.

Examples

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.');
">

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later.
DLL
Wmp.dll

See also

Network Object