Chapter 13
336
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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...