I’m using JNA in combination with VLC to embed video within a standard Java application. In particular I’m using VLCJ (http://code.google.com/p/vlcj/) to provide a binding between Java and the VLC libraries. Here’s a quick summary of how video is started on a java.awt.Canvas object:
Code: Select all
java.awt.Canvas videoSurface = new MyCustomCanvas();
…
long drawable = Native.getComponentID(videoSurface);
libvlc_exception_t exception = new libvlc_exception_t();
libvlc.libvlc_media_player_set_drawable(mediaPlayerInstance, (int) drawable, exception);
I don't think this really is an issue at all with VLC (and I do have a support question into the folks at JNA and VLCJ) but I thought I’d throw it out there and see if anyone had any suggestions or ideas.
Thanks,
Dave Irwin