The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » Blu-ray Disc Java

Thread: [BD-J-DEV] Masking Pause/Play UserOp

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Nov 2, 2009 4:59 AM by: Gunnar Adler Threads: [ Previous | Next ]
Gunnar Adler
[BD-J-DEV] Masking Pause/Play UserOp
Posted: Oct 29, 2009 10:03 AM
  Click to reply to this thread Reply

Hi there,

I am looking for a way to completely control Pause/Play UserOps through BD-J.

While "Pause On" can be masked in the playlist file somhow "Pause Off"
cannot. This way users are always allowed to resume a paused video by
pressing Pause or Play buttons.
The BD spec mentiones "Pause Off" but why the bit setting is reserved
for future use only is a mystery to me.

Any ideas how I could gain control over the "Pause Off" function?

Thank you!
Gunnar

---------------------------------------------------------------------
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


hooligancat

Posts: 18
Re: [BD-J-DEV] Masking Pause/Play UserOp
Posted: Oct 30, 2009 2:10 AM   in response to: Gunnar Adler
  Click to reply to this thread Reply

Hi Gunnar,
Set your Title into Interactive mode instead of Movie mode. Add the keys your interested in, into the BDJO file section that deals with 'Use Key Event' (Play, Pause etc).
In your BDJ code add the keys to your UserEventRepository eg:

userEventRepository.addKey(HRcEvent.VK_PLAY);
userEventRepository.addKey(HRcEvent.VK_PAUSE);

then in your UserEventListener add them again (as you normally would for the popup menu key):

switch (userEvent.getCode())
{
case HRcEvent.VK_PLAY:
DEBUG("Play button pressed");
break;

case HRcEvent.VK_PAUSE:
DEBUG("Pause button pressed");
break;

...
...
}

This will now give you complete control of Play and Pause. From now on, you must control what happens when these keys are pressed.

Gunnar Adler
Re: [BD-J-DEV] Masking Pause/Play UserOp
Posted: Nov 2, 2009 4:59 AM   in response to: hooligancat
  Click to reply to this thread Reply

Thank you! I totally forgot about the interactive mode.
There is no timecode display but I guess I can live with this.

---------------------------------------------------------------------
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





 XML java.net RSS