OnStart and OnFinish

The OnStart element contains actions to be beformed at the beginning of a segment of audio content.

The OnFinish elements contains actions to be beformed at the end of a segment of audio content. Also when a Goto element jumps to an end of a container, the actions within the OnFinish element are executed before moving to the next container.

Both elements may contain one or more ActionSet elements.

Example

The following example is from a shared block of audio content that tells a user that he has selected the wrong answer. After playing, the audio returns to the location that was previously pushed onto the stack.

<File ID="WrongAnswer" Href="wronganswer.mp3">
   <OnFinish>
         <Goto>
               <PopStack/>
         </Goto>
   </OnFinish>
</File>