Skip to main content

Trouble Developing a basic Xlet

3 replies [Last post]
Joined: 2010-01-12

Hello all,

I have been visiting these forums off and on for a few months but with in the last month I have been seriously trying to develop a BD-J application. I have downloaded the repository project with the tools and the examples; I even have the hd cookbook. However, I am having trouble connecting what is need to make an application run in a software player. How do I get my code translated to a disk image? Is there a tool for this? I know that there is a disk structure needed to burn BD-J content to disk, does this also apply for a disk image? I kind of feel silly asking these question because I've been developing Java ME applications for a few years; so I thought I knew what I was doing but I'm having trouble "connecting the dots".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-05-19

hi friends and devs,

here i'm using Java ME SDK 3.0. i've developed a simple, basic project which will take the playlist using BDLocator and simply play the file in the Arcsoft player. I gave the blu-ray image that is given by the HDCookBook. Now i dont know how to create BDMV structure for a given video file that can be a url(either from local or remote). In Java ME 3.0 it is creating the same structure. But inside that folders there is no content.

Can anyone suggest or guide me to create the BDMV structure for the given video file. Please i'm new to this BD-J applications. Help from anyone will be appreciated. Please do help me to do this application. And sorry for my poor english.

Thanks in advance..


Joined: 2006-11-08

Perhaps you can take a look at the repository's xlet/HelloTVXlet project. It contains a simple HelloWorld BD-J example, where the build file compiles the source, makes a jar, signs a jar, and assembles a valid disc image. After building the project, one can drag and drop the BDMV directory created in the "dist" directory to a PC player, or burn the content of the dist directory to a BD-R/RE and pop it to a hardware player...

Joined: 2004-02-13

Chihiro's exactly right.

The hidden secret of Blu-ray is that, like DVD before it, a "disc image" is really just a bunch of files in a directory with a bunch of naming conventions. For a BD-ROM disc, there's other stuff too, but to make a disc image you play on a computer, or burn to a BD-RE and play on a real player, you pretty much just make a bunch of files with the right names and the right stuff in them.

The specification of "the right stuff" is contained in the BD-ROM specification part 3, which is somewhat expensive, but the outlines are described in the HD cookbook and the book "Blu-ray Disc Demystified." The cookbook repository has a number of projects in it that build a disc image -- the "tool" used to do that is an ant script that calls a bunch of programs in the repository to create the various files needed, and then a bunch of mkdir and mv commands to build up the right directory structure.

Typically, project directories in the repository have a default target to build the disc image, and they put it in "dist." To play from a software player, you point the software player at the directory dist/BDMV, and say "play." For a real player, you burn the contents of dist (that is, the directories BDMV and CERTIFICATE) to the root of a BD-RE disc formatted as UDF 2.5, and put the disc in a player. You can poke around in xlets/demos and xlets/tests to find more projects that create disc images.

Expect some trial and error before everything's set up correctly. The wiki has a fair amount of pragmatic info on it.