Skip to main content

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

2 replies [Last post]
Anonymous

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hooligancat
Offline
Joined: 2009-10-20

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

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