So, I’m painfully close in getting it to work.
See the link in my above post for reference (RenderCallback in VLCJ with display(Memory))
Source: http://www.java-gaming.org/index.php?action=pastebin&hex=33ad12326
almost there. Maybe I’m doing something incredibly stupid here with the buffers. But I’m not an OpenGL programmer =D
Getting:
[quote]Exception in thread “main” java.lang.IllegalArgumentException: Number of remaining buffer elements is 2785280, must be at least 6291456. Because at most 6291456 elements can be returned, a buffer with at least 6291456 elements is required, regardless of actual returned element count
[/quote]
To bottom line this: Once it works, video playback works.
You can ship VLC, just like a private JRE, including all natives for windows, linux and mac, just like with the lwjgl dlls.
Then there is only license problems, with java library and codecs.
To solve them: only include theora & vorbis codec
Make your code GPL, or at least that part that uses/communicates with VLCJ, still have to know which one