Skip to main content

RegisterAccess.PSR_CHAPTER_NR

1 reply [Last post]
hooligancat
Offline
Joined: 2009-10-20

I am trying to get the current chapter number from the playlist. I am capturing the VK_TRACK_NEXT event. On the PS3 I always get 65535 back as the chapter number. TMT returns it correctly.

Is RegisterAccess.PSR_CHAPTER_NR not guaranteed to work on all players or is there an error in the way the playlist is set up:

12 chapters marked as Entry Mark. Playback Type is Sequential, All UO's permitted, Random Access Flag is Permitted. BD-J Title set as Interactive, Access Type as Permitted. VK_TRACK_NEXT/PREV selected as key events in BDJO.

Chapter number with:
import org.bluray.system.RegisterAccess;
int l_chp = RegisterAccess.getInstance().getPSR(RegisterAccess.PSR_CHAPTER_NR);

As a sidenote TMT shows the chapter number (in its' display) as 00, and in its' right click menu, shows the chapter sub menu greyed out.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice

If you're registering for VK_TRACK key events you must be using interactive titles. The PS3 is conforming to spec - when the title type is interactive, PSR 5 is mandated to be 0xFFFF. Seems like TMT is out of spec here.

I believe you can still monitor mark IDs (chapter number - 1) during normal playback by setting up a PlaybackListener and monitoring PlaybackMarkEvents.

Cheers,
Joe

On Nov 9, 2009, at 4:55 AM, bd-j-dev@mobileandembedded.org wrote:

> I am trying to get the current chapter number from the playlist. I am capturing the VK_TRACK_NEXT event. On the PS3 I always get 65535 back as the chapter number. TMT returns it correctly.
>
> Is RegisterAccess.PSR_CHAPTER_NR not guaranteed to work on all players or is there an error in the way the playlist is set up:
>
> 12 chapters marked as Entry Mark. Playback Type is Sequential, All UO's permitted, Random Access Flag is Permitted. BD-J Title set as Interactive, Access Type as Permitted. VK_TRACK_NEXT/PREV selected as key events in BDJO.
>
> Chapter number with:
> import org.bluray.system.RegisterAccess;
> int l_chp = RegisterAccess.getInstance().getPSR(RegisterAccess.PSR_CHAPTER_NR);
>
> As a sidenote TMT shows the chapter number (in its' display) as 00, and in its' right click menu, shows the chapter sub menu greyed out.
>
> Thanks
> [Message sent by forum member 'hooligancat' (adame@tellx.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=371147
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net