Java for BD-J menus

This thread startet in 2018 and BD-J never worked 100% perfect

1 Like

Yeah no I can see that, I get that it seems like it’s not going to change just because it hasn’t in so many years. It probably needs someone dedicated to take a look at it which is what I want to do, I program in Java :stuck_out_tongue:. I’m just trying to establish where the bottleneck is

I don’t see this behaviour. Pressing x on keyboard or sending by kodi-remote stops the video.

And that’s why such issues will never be changes because it is not clear how to reproduce.

Hi vpeter, this means that there will be an update for the JAVA BD-J add-on during the next days?

It was already done for CE-22.
But I forgot to fix CE-21 too. Will do it in a day or two.

5 Likes

how can I control the bluray menu and not the kodi menu, what key do I need, tried so many remotes, can’t figure it out. even if the menus are playing fine.

Switching audio tracks and subtitles through the Kodi menu is invalid when playing Blu-ray, and it can only take effect when switching through the Blu-ray menu. However, for some modified files, their subtitles will not be displayed in the Blu-ray menu, although they can be seen in the Kodi menu, but they cannot be switched successfully.

i want add a cutom keymap in blueraymenu,i shoud use <videomenu></videomenu> or what

Environment

  • CoreELEC version: 21.3 (NG)

  • Affected component: jre.zulu plugin / libbluray patch

  • Test media: Blu-ray ISO files

Question

The Kodi window is permanently stuck as videomenu regardless of whether the Blu-ray menu is displayed or not. It seems the added Java-related configuration keeps Java running in the background, which falsely maintains the videomenu window state.Does the newly added code -Djava.awt.headless=false (and the disabled X11 check) directly cause the invalidation of Kodi’s window state detection for Blu-ray menus? Is there a way to fix this while retaining the X11 check disable feature?

packages/multimedia/libbluray/patches/libbluray-03-set-headless-false.patch

1 Like

Last time I checked it worked fine.
What exactly is the issue?

I have written a keymap.xml file which is designed to implement specific key press logic based on different window contexts. Currently, when playing an ISO file in Blu-ray menu mode, the logic configured for the fullscreen window fails to trigger properly. Through the skin’s debug mode, I have identified that this issue is caused by the window context remaining as ā€œvideomenuā€ persistently.

Look like your issue only which means you will have to debug java too.

Is there a wiki for how this is intended to be setup?

I usually had CE set to just play main movie or show simplified menu so first time actually trying this.

So far, it’s unusable

  • Black screen with a play counter and no menu at all for 1 movie after playing all the pre-roll.
  • Menu screen on another but completely not navigable, no amount of button presses will select anything. Enter/OK will bring up OSD with a Stop only button.

PR for improvements are welcome :wink:

1 Like

My mistake, I didn’t realize this didn’t actually work, I should have noticed it was labeled Feature Requests and reading all the way back to 2018 is too painful.

Thanks for the reply, I’ll turn it back to Show simplified menu :slightly_smiling_face:

Last time I checked the addon it worked. But there are issues with navigation when menu is used. Sadly no one looked to fix this in Kodi. Everyone would just want to have it …
And no, this addon is not just feature request because the feature was implemented :smiling_face_with_three_hearts:

Basically this addon just ads JRE support to a device and not much more.

That would explain the no selection menu on second movie, not the black screen / no menu on the first.

That explains the behavior much better, but it ā€œseemed likeā€ CE was just playing the m2ts files associated with the menu and not actually doing a menu.

I’m fine without this, I have too much on my plate to get wrapped up in trying to solve it.

I can’t even get through the code I’m already doing for a different feature I’m trying to implement without road blocks and backtracking. Much less even consider if it will be accepted by any one (Kodi/LE/CE/OSMC) if I ever do get it to work.

Of course it shows menu: that’s the whole point of having JRE. Seems you didn’t open menu itself but instead just play.

Well, I don’t know what I did wrong.

  1. Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray Menu
  2. Click Movie
  3. See playback start, observe described behavior.

Is this different because I’m still on 21.3?

Hi again vpeter

I didn’t know you were the one to initially implement BluRay menus way back when.

Now I feel bad about being dismissive, sorry about that, I have no excuses to offer,

If you would be interested I also would be to set aside some time to figure out what’s not working for me on this, maybe it will help other users going forward.