JVLC and DVD Chapter Navigation
Posted: 12 Sep 2008 19:02
Hi,
I've just started trying to use JVLC in a pet project, I've had the very simple sample player running nicely and now I want to add the features I need.
What I need is to be able to DVD chapter navigation. I had a look in the LibVlc.java file and what I think I need is something like this (I basically just looked in the libvlc.h file for the corresponding methods):
I'm a Java developer so I can do all of that and I can rebuild the Java jar file... but...
Right now I have installed the 0.8.6e version of vlc, but the only place I could get the Java bindings source code was direct from the git repository. I still can't, after spending many hours, get my environment to build the nightly videolan distribution itself without errors.
What this means is that I have Java bindings that are out-of-step with my vlc installation and obviously it doesn't work - I get errors like certain functions aren't present in the libvlc.so file.
So my questions are:
- Am I at least on the right track for DVD chapter navigation, can these functions be added to JVLC?
- Is there, or could there be, an 'official' release of JVLC (with sourcecode) made that matches the 'official' vlc release so the versions will match?
- Or do I basically just have to keep trying to get my build environment in a fit state to build the entire videolan distribution?
I hope someone can offer some help!
Thanks.
I've just started trying to use JVLC in a pet project, I've had the very simple sample player running nicely and now I want to add the features I need.
What I need is to be able to DVD chapter navigation. I had a look in the LibVlc.java file and what I think I need is something like this (I basically just looked in the libvlc.h file for the corresponding methods):
Code: Select all
void libvlc_media_player_set_chapter(LibVlcMediaInstance instance, int chapter, libvlc_exception_t exception);
int libvlc_media_player_get_chapter(LibVlcMediaInstance instance, libvlc_exception_t exception);
int libvlc_media_player_get_chapter_count(LibVlcMediaInstance instance, libvlc_exception_t exception);
Right now I have installed the 0.8.6e version of vlc, but the only place I could get the Java bindings source code was direct from the git repository. I still can't, after spending many hours, get my environment to build the nightly videolan distribution itself without errors.
What this means is that I have Java bindings that are out-of-step with my vlc installation and obviously it doesn't work - I get errors like certain functions aren't present in the libvlc.so file.
So my questions are:
- Am I at least on the right track for DVD chapter navigation, can these functions be added to JVLC?
- Is there, or could there be, an 'official' release of JVLC (with sourcecode) made that matches the 'official' vlc release so the versions will match?
- Or do I basically just have to keep trying to get my build environment in a fit state to build the entire videolan distribution?
I hope someone can offer some help!
Thanks.