<doc>
  <legacy_id>1971</legacy_id>
  <name>duration</name>
  <type>property</type>
  <syntax>
    <example>get the duration of <i>player</i></example>
  </syntax>
  <library></library>
  <objects>
    <player/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <property tag="looping">looping Property</property>
    <property tag="callbacks">callbacks Property</property>
    <property tag="startTime">startTime Property</property>
    <property tag="showSelection">showSelection Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the length of a sound or movie.</summary>
  <examples>
    <example>put (the duration of me/the timeScale of me) into totalSeconds</example>
  </examples>
  <description>
    <p>Use the <b>duration</b> <glossary tag="property">property</glossary> to find out how long a movie or sound takes to play.</p><p/><p><b>Value:</b></p><p>The <b>duration</b> of a <keyword tag="player">player</keyword> is an integer.</p><p/><p>This property is read-only and cannot be set.</p><p/><p><b>Comments:</b></p><p>The <b>duration</b> of a <keyword tag="player">player</keyword> is the number of intervals in the movie or sound contained in the <keyword tag="player">player</keyword>. (The number of intervals per second is specified by the <glossary tag="player">player's</glossary> <property tag="timeScale">timeScale</property> <glossary tag="property">property</glossary>.)</p>
  </description>
</doc>