gdx-video icon indicating copy to clipboard operation
gdx-video copied to clipboard

gdx-video support for teavm-backend?

Open noblemaster opened this issue 7 months ago • 2 comments

I used gwt in the past, but I find teavm the much better option for web, e.g. due to its mutlithreading support. Are there plans to support teavm also in the future?

noblemaster avatar Apr 14 '25 16:04 noblemaster

I didn't plan it. I think I only tried gdx-teavm once. I can look into it when I find some time. It would be kind of interesting to have this first party lib compatible with a third party backend.

SimonIT avatar Apr 18 '25 17:04 SimonIT

So I just made a first version of it by changing basically the classes from gwt to teavm https://github.com/libgdx/gdx-video/tree/teavm Three things needed to be done for testing it:

  1. ((TeaGL20)Gdx.gl).gl is not accessible
  2. v.setSrc(((TeaFileHandle)file).getAssetUrl()); getting the url of the video file
  3. VideoPlayerCreator find out how to use reflection

SimonIT avatar May 02 '25 13:05 SimonIT