duration

Specifies the length of a sound or movie.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

get the duration of player

# Examples

put (the duration of me/the timeScale of me) into totalSeconds

# 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 timeScale property.)

# Tags

# See

- **keyword:** player - **property:** looping, showSelection, callbacks, startTime, timeScale - **object:** player - **glossary:** property