PDA

View Full Version : Keeping track of which button the user has clicked


Mikele
21st August 2005, 08:58
Hi everyone,

I'm building a menu where the user can choose which one of a set of 3 clips he wants to watch and also if he wants to play them all. I'm using DVDLab, it has playlists and I thought those were going to be useful for the 'play all' function, but I can't determine where it will go when the playlist has played completely, so I chose a different approach: I'm using a register to keep track of which button the user has selected. If he selects clip1, I set GPRM5=1, 2 for clip2, 3 for clip3 and 4 for 'play all'. Then, after each clip has played, I check the register and, if its value is 4, I send the playback to the following clip, otherwise I go back to the menu.

I've never tried something like this before and, amazingly, it worked fine (at least with PC DVD players). But since my skills at DVD authoring are less than limited, I wanted to ask you if what I did sounds logical to you and if there's any problem that I might run into regarding compatibility with standalone players.

Or is it just that easy?

Thanks in advance!

Video Dude
21st August 2005, 18:41
Its just that easy. :)

That method will be compatible with all dvd players.

mic
21st August 2005, 21:26
Not contradicting anything, might want to clear the variable when jumping to menu, if of course you haven't already.

Zyphon
21st August 2005, 23:02
@Mikele

When I use the playlist on DVD-Lab Pro what I do is this.

Make a menu with something like this Movie1, Movie2 & Movie3 and then a link for Play ALL which points to the Playlist.

Then I simply click on the playlist icon in the connections window and set the end link back to the root menu.

Saves me the hassle of having to use a IFO editor.

You have to make a dummy VMG menu but it works fine for me.

Just a suggestion. :D

Mikele
21st August 2005, 23:11
Excellent, thank you guys! BTW I wasn't clearing the variable because when I evaluate it I've always assigned it a new value, but anyway I'm going to clear it, just in case :)

Mikele
21st August 2005, 23:16
@Zyphon:

The problem is that I don't want to return to the root menu, and when I drag a link from the end of the playlist, the menu that I want to return to appears blocked with an 'X'. Anyway, I didn't have to edit any IFO, I just used DVDLab components to assign the value to the register and then a 'case' and finally a 'splitter', so I didn't need to do any low level stuff.

Zyphon
21st August 2005, 23:43
@Mikele

Oh sorry I misunderstood you.

The method you used looks like a good one, I shall have to give it a try. :D