<doc>
  <legacy_id>2378</legacy_id>
  <name>endTime</name>
  <type>property</type>
  <syntax>
    <example>set the endTime of <i>player</i> to <i>endPoint</i></example>
  </syntax>
  <library></library>
  <objects>
    <player/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <message tag="selectionChanged">selectionChanged Message</message>
    <message tag="playStarted">playStarted Message</message>
    <property tag="looping">looping 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 end of the <property tag="selected">selected</property> portion of a sound or movie.</summary>
  <examples>
    <example>set the endTime of player 1 to 1000</example>
  </examples>
  <description>
    <p>Use the <b>endTime</b> <glossary tag="property">property</glossary> to set or get the <keyword tag="selection">selection</keyword> in a <keyword tag="player">player</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>endTime</b> of a <keyword tag="player">player</keyword> is an <keyword tag="integer">integer</keyword> between zero and the <glossary tag="player">player's</glossary> <property tag="duration">duration</property>.</p><p/><p>By default, the <b>endTime</b> <glossary tag="property">property</glossary> of newly created <glossary tag="player">players</glossary> is set to empty.</p><p/><p><b>Comments:</b></p><p>If the <b>playSelection</b> <glossary tag="property">property</glossary> is true, only the <property tag="selected">selected</property> portion plays, so you can use the <property tag="startTime">startTime</property> and <b>endTime</b> <property tag="properties">properties</property> of the <keyword tag="player">player</keyword> to play whatever portion of the sound or movie you want.</p><p/><p>The <b>endTime</b> is the number of the interval where the <keyword tag="selection">selection</keyword> ends. (The number of intervals per second is specified by the player's <property tag="timeScale">timeScale</property> <glossary tag="property">property</glossary>. The total number of intervals is given in the <glossary tag="player">player's</glossary> <property tag="duration">duration</property> property.) If there is no <keyword tag="selection">selection</keyword>, the <b>endTime</b> is empty.</p>
  </description>
</doc>