duration
Type
property
Summary
Specifies the length of a sound or movie.
Syntax
get the duration of <player>
Description
Use the duration property to find out how long a movie or sound takes to play.
The duration of a player is the number of intervals in the movie or sound contained in the player. (The number of intervals per second is specified by the player's timeScale property.)
Examples
put (the duration of me/the timeScale of me) into totalSeconds
Value
Name | Type | Description |
---|---|---|
value | The duration of a player is an integer. This property is read-only and cannot be set. |
Related
property: looping, showSelection, callbacks, startTime, timeScale
glossary: property
keyword: player
object: player
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile