View Full Version : A question about Resume function
dashali
9th September 2008, 23:05
My DVD has 2 Titles {1st=Main Movie, 2nd=Trailer}
I want when select a lang in Sub Menu, the Resume function is performed but only for Title 1, in other words, I want it play Title1; if Title 1 played before, is resumed and if Title 1 don't played, it play from begining. When I play Title 2 until middle and go back to Sub Menu and select a lang, Title 2 is resumed but I want Title 1 to be done (start or resume). Is there any way?
blutach
9th September 2008, 23:12
Ensure the "resume flag", which is a gprm is set to a different number for title 2 than title 1.
Often you will see something like this in a menu PGC:
[20 A1 00 03 00 0A 00 10] 1 if ( gprm(3) == 10 ) then { RSM } and this in the pre-commands of the title (or a PGC leading up to the title)
[71 00 00 03 00 0A 00 00] 1 Set gprm(3) =(mov) 10 (with gprm(3) being reset to some other figure in the title's post commands).
So, in title 2, set gprm(3) to something other than 10 and the RSM shouldn't work for that title.
Of course, if the RSM is issued alone, irrespective of a gprm's settings, and title 2 was the last one playing, then you need to re-author so the RSM is execuated conditionally, as above.
Regards
r0lZ
10th September 2008, 10:31
You can theoretically also use SPRM 5 (holding the number of the last played title) to check if a RSM can be executed. The current command that resumes (probably a single RSM alone) should be changed to something like this:
[61 00 00 0F 00 85 00 00] 1 Set gprm(15:tmp) =(mov) sprm(5:Title number in VTS)
[20 A1 00 0F 00 01 00 10] 2 if ( gprm(15:tmp) == 1 ) then { RSM }
[30 02 00 00 00 02 00 00] 3 (JumpTT) Jump to Title 2
I assume that GPRM 15 is not used yet. Line 1 copies the number of the last played title in the free register. Line 2 checks if the last played title was title 1, and if it's the case, it resumes to that title. Otherwise, line 3 is executed, to play the bonus title nurmally. Of course, you can replace line 3 with whatever you want, if you prefer to return to the main menu, for example.
Important: Although I have not verified that myself, I've read somewhere that SPRM 5 does not contain the right value on some players. Of course, if the value is wrong, the method will not work. Use blutach's suggestion instead. Anyway, burn a RW and test it carefully on your standalone player.
dashali
10th September 2008, 16:30
Thanks blutach & r0lZ
Method of blutach works but method of r0lZ don't work.
I add [20 A1 00 00 00 01 00 10] 1 if ( gprm(0) == 1 ) then { RSM } to pre-command of pgc-dummy witch linked in Root Menu, and add [30 03 00 00 00 01 00 00] 1 (JumpVTS_TT) Jump to TTN 1 in this VTS to post-command's;
add [71 00 00 00 00 01 00 00] 1 Set gprm(0) =(mov) 1 to pre-command of Title 1;
add [71 00 00 00 00 00 00 00] 1 Set gprm(0) =(mov) 0 to pre-command of Title 2.
That works fine.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.