Partager via


VIEW.timerInterval

[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 timerInterval attribute specifies or retrieves the interval, in milliseconds, at which the timer fires events to the ontimer event handler.

        elementID.timerInterval

Possible Values

This attribute is a read/write Number (long) with a default value of 1000.

Value Description
0 The timer event does not fire.
50 and above The interval in milliseconds.

Any value below 50 (including negative numbers, but not including zero) generates an error and the previous value is maintained.

Remarks

This will not fire automatically if no ontimer event handler is implemented. Thus there is no performance degradation even though the default value is nonzero.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

VIEW Element

VIEW.ontimer