Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeJ2ME could benefit from a Web Player, even if limited in capability and performance #6

Open
AShiningRay opened this issue Sep 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@AShiningRay
Copy link
Collaborator

Thanks to CheerpJ, it is possible to run FreeJ2ME in a browser. With a local proof of concept working just fine:

image

It is, however, rather limited, being much slower than a native JVM, and also lacking features such as MIDI support, not to mention AWT being littered with glitches on it.

Furthermore, quite a bit of work will be needed in order for it to be usable, as FreeJ2ME can't access the user's Filesystem directly, and so it falls to JavaScript to call upon a file picker to then pass the jar into FreeJ2ME's virtual FS inside CheerpJ.

There's also some usability tweaks to be made, so that it doesn't feel too detached from the webpage itself, but it's not a critical task... at least the possibility is there.

@AShiningRay AShiningRay added the enhancement New feature or request label Sep 21, 2024
@zb3
Copy link

zb3 commented Sep 22, 2024

No MIDI support? They say they've implemented the whole OpenJDK and on discord I saw they mention "Audio Support" :(

@AShiningRay
Copy link
Collaborator Author

No MIDI support? They say they've implemented the whole OpenJDK and on discord I saw they mention "Audio Support" :(

Nope, midi simply fails to load no matter what, and to be fair their AWT support is also very bad (file picker doesn't work, the UI can break rather easily, so on), swing seems a bit better, but is overkill for FreeJ2ME. Unfortunately, this means that the web version will either be restricted compared to the standalone version, or some kind of translation from midi to wav (didn't check if wav works, but if there's any kind of audio support, this should at least be there) will have to happen. In any case, for a proof of concept, it's fine so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants