User Guide
Chapter 13336
Playing digital video with Lingo
Lingo can take advantage of the most important and powerful features of digital video. Besides
playing digital video linearly, Lingo can pause, stop, and rewind a video. These abilities are useful
for jumping to segments within a digital video and for emulating a typical digital video control
panel. This last feature is especially useful for AVI digital video, which has no control panel.
Lingo also lets you work with individual tracks in a digital video by determining the tracks’
content and position and turning these tracks on and off.
For information on using Lingo with RealMedia movies, see “Using RealMedia content in
Director” on page 341.
Controlling digital video playback with Lingo
The following list describes how you can control digital video with Lingo. For more information,
see the Lingo Dictionary.
• To turn on looping in a digital video cast member, set the digital video’s loop cast member
property to TRUE.
• To determine the current time of a digital video sprite, check the sprite’s currentTime
property.
• To pause a digital video sprite, set the sprite’s movieRate property to 0.
• To start a paused digital video sprite, set the sprite’s movieRate property to 1.
• To play a digital video sprite in reverse, set the sprite’s movieRate property to -1.
• To rewind a digital video sprite to the beginning, set the sprite’s movieTime property to 0.
• To control a digital video sprite’s playback rate, set the sprite’s movieRate property to the
desired rate.
• To mix QuickTime audio tracks with internal Director sounds (necessary only in Windows),
use the
soundDevice system property to specify QT3Mix.
Determining digital video content with Lingo
The following list describes how Lingo can determine a digital video’s content. For more
information, see the Lingo Dictionary.
• To determine the time units a digital video cast member uses, check the video’s timeScale cast
member property.
• To determine whether a digital video is QuickTime or AVI, check the digital video’s
digitalVideoType cast member property.
• To determine the number of tracks in a digital video sprite or cast member, check the digital
video’s
trackCount sprite or cast member property.
• To determine which type of media a digital video track contains, check the digital video’s
trackType sprite or cast member property.
• To determine the start time of a track in a digital video sprite or cast member, check the digital
video’s
trackStartTime sprite or cast member property.
• To determine the stop time of a track in a digital video sprite or cast member, check the digital
video’s
trackStopTime sprite or cast member property.