» Click here to download example files for this project.
In ReelDVD everything is placed into a single Video Title Set, even the menus. We created a title menu with four buttons to play each of the tracks, and a fifth unassigned button, labeled Play All. ReelDVD placed the title menu in PGC 1, the four clips in PGCs 2 through 5, and the play all button in PGC 6.
#DVDAfterEdit Commands V1 #PreCommands from "ReelDVDPlayAll:First Play PGC:" 1: Jump TT 1
The first play jumps to the title menu.
#DVDAfterEdit Commands V1 #PreCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 1 TT 1:" 1: if r14 != 0 then GoTo Line 3 2: Set r15 = Subpic lang 3: Set r14 = 1 4: Set r0 = 0
The first three lines are ReelDVD abstraction layer commands that for this project mean nothing. We have added line 4, which clears our Play All register flag each time we enter or reenter the title menu.
Each of the buttons in the Title Menu is already set up to play the correct track, except for the Play All button.
#DVDAfterEdit Commands V1 #PostCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 2 TT 1:" 1: if r0 == 1 then Link PTT 3 2: Link PTT 1
After playing Track 1, the post commands are executed. If we are in Play All mode, we continue to Track 2. If not, we go back to the Title Menu.
#DVDAfterEdit Commands V1 #PostCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 3 TT 1:" 1: if r0 == 1 then Link PTT 4 2: Link PTT 1
#DVDAfterEdit Commands V1 #PostCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 4 TT 1:" 1: if r0 == 1 then Link PTT 5 2: Link PTT 1
Tracks 2 and 3 do the same thing as track 1, either continue or go back to the Title Menu.
#DVDAfterEdit Commands V1 #PostCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 5 TT 1:" 1: Link PTT 1
The last track always goes back to the Title Menu.
#DVDAfterEdit Commands V1 #PreCommands from "ReelDVDPlayAll:Video Title Sets:VTS 1 (6 program chains):PGC 6 TT 1:" 1: Set r0 = 1 2: Link PTT 2
The play all button sets the Play All register on and plays the first Track.
But how did the player get to the PGC Commands? It used the button commands in the Nav packs:
Notice that button 1 linked to PGC 2, which had no pre commands so it just played Track 1 and then went to the post commands, which we covered earlier.
So we set the button command for button 5 (the Play All button) to link to PGC 6. This will send it to the pre commands, which set the Play All register and then plays Track 1.
For some reason ReelDVD set the Force Selection button the button 1. Here we have cleared it, so it will remember which button was highlighted last when it gets back to the Title Menu.
Thats all, folks!