Skip to main content

problem with HGraphicButton

6 replies [Last post]
sam_azaz
Offline
Joined: 2007-10-07

Hi,
I have used the HGraphicButton in my BD-J application. When button is in "normal state" or "focussed state", correct image appears. But, for the "actioned state", the image for actioned state do not appear. Can anyone tell me the reason for such an odd behaviour ?
Thanx in advance
Sam.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shinnawy
Offline
Joined: 2007-04-08

You might also find it handy to check on the following properties to make your application aware of the remote control capability:

1. [b]bluray.rccapability.release[/b]: yes if the player is capable of generating key released event.
2. [b]bluray.rccapability.holdandrelease[/b]: yes if the player is capable of generating a key release event only once per key pressed event.
3. [b]bluray.rccapability.repeatonhold[/b]: yes if player generates multiple key events on key hold.

sam_azaz
Offline
Joined: 2007-10-07

thanks to all for clearing the doubt :)

bjoern_minkmar
Offline
Joined: 2007-06-11

Hi Sam,

could you please tell me which player you are using to test you Xlet?
Does this behaviour appear in XletViewer or on a hardware player?

Cheers,
Björn

sam_azaz
Offline
Joined: 2007-10-07

Hi Bjorn,
I am using samsung player.
This condition is happening in the player.
I doubt where the problem is.
rgds
Sam

bjoern_minkmar
Offline
Joined: 2007-06-11

Hi Sam,

the Samsung BD-P 1000 has problems displaying HGraphicButtons and HTextButtons correctly. So i guess your code is okay.

HGraphicButtons never show the "actioned state" - graphic and HTextButtons don`t turn back to "normal state" appearance after they`ve once gained and lost the focus.

I`ve been working on my own HGraphicButton class implementation to overcome this problem. But i had to find out that some players -like the Samsung - don`t make a distinction betweeen KeyPressed and KeyReleased Events.

Maybe there will be a firmware update in the future that will fix the problem.
In the meantime you can ignore this behaviour or you should get a second player.

Cheers,
Björn

Bill Foote

> But i had to find out that some players -like the Samsung - don`t make a distinction betweeen KeyPressed and KeyReleased Events.

Just for the record, it's OK if a player only produces KEY_PRESSED
events. Nothing in PBP requires platforms to generate a KEY_RELEASED
event, and I believe it's the case that some MHP terminals only
generate KEY_PRESSED. I don't remember if MHP/GEM have explicit
language about that. Of course, in this public forum I can't
say what the BD-ROM spec does or doesn't say on this matter.

Cheers,

Bill

> <...>
> Cheers,
> Björn

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