But what if, Canceling the play all script, Language code table – Apple DVD Studio Pro 4 User Manual

Page 525

Advertising
background image

But What If...

When you create scripts that store a status in a GPRM, such as the Play All script, you need
to plan for Viewer actions that are outside of the script’s intentions. In this case, these
scripts will work exactly as intended most of the time. An exception is if the viewer decides
not to let the Play All process finish. The viewer might press the Menu button on the
remote control while the Play All process is active and then choose a specific track to
watch by selecting its button in the menu. Because the value in GPRM 0 is still “1,” once
that track finishes playing and runs its Track End script, it will see that GPRM 0 is “1” and
jump to the next track instead of back to the menu.

In other words, the only way to really stop the Play All process and reset GPRM 0 to “0”
with the previous scripts is to let the process play to the end. There are a couple of ways
to handle this:

Force the viewer to watch to the end: You can disable the Menu and Title buttons on

the remote control. This may be appropriate for training videos with mandatory viewing.
See

Remote Control Settings

for more information.

Add scripts to the other menu buttons that reset GPRM 0 to “0”: This way, if the viewer

chooses to play one of the tracks on its own, the Play All process will be canceled and,
once the track finishes playing, the DVD will jump back to the menu. See

Canceling

the Play All Script

for more information.

Canceling the Play All Script

The script required to cancel the Play All script is almost identical to the Play All script—the
differences are that you set GPRM 0 to “0” instead of “1,” and the jump target is set to
match what the button would have jumped to.

For example, if the menu with the Play All button also has buttons for each individual
track (“Ocean,” “Beach,” “Trail,” and “Shopping”), you will need to create a unique script
for each of these buttons that sets GPRM 0 to “0” and then jumps to the button’s track.

Use the steps in

The Play All Script

to create these scripts, with the following modifications:

• Name the scripts “Ocean Play,” “Beach Play,” and so on in step 3.

• Enter 0 as the Source Value in step 6.

• Configure the jump command in step 9 exactly as listed for the Ocean track. The scripts

for the other three tracks only need this step changed, with each configured to jump
their track.

Once the four scripts have been created, you link them to the menu buttons.

Language Code Table

This table lists all possible languages and their numeric equivalents. It is sorted
alphabetically by the language name.

525

Chapter 20

Creating Scripts

Advertising