duration

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
get the duration of <player>
Associationsplayer
Summary

Specifies the length of a sound or movie.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put (the duration of me/the timeScale of me) into totalSeconds
Values
NameTypeDescription
Value

The duration of a player is an integer. This property is read-only and cannot be set.

RelatedKeyword: player
Property: looping, showSelection, callbacks, startTime, timeScale
Object: player
Glossary: property
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.)

Tagsmultimedia