currentTimeChanged | |||||||
Type | message | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | player | ||||||
Summary | |||||||
Introduced | 1.0 | ||||||
Changes | The pNewTime parameter was introduced in version 2.0. In previous versions, the currentTimeChanged message did not have a parameter. | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Keyword: player Property: callbacks, duration Message: playStarted, playPaused, selectionChanged Object: player Glossary: property, player, message, frame, trap Control Structure: pass | ||||||
Description | The currentTimeChanged message is sent while the player is playing or when a user changes the current time in a player. Handle the currentTimeChanged message if you want to do something when the user changes the current time in a player. The user can change the current time by:
Changing the player's currenttime property property by script does not trigger the sending of the currentTimeChanged message. Changing the player's currenttime property property by script does not trigger the sending of the currentTimeChanged message. Starting the player by script does trigger the sending of the currentTimeChanged message once it is playing. The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property. The actual process of changing the player's current time is not triggered by the currentTimeChanged message, so trapping the message and not allowing it to pass does not prevent the user from changing the player's current time manually. | ||||||
Tags | multimedia |