2

I am planning an application that will display video in a swing frame. It has to run on both Mac and Windows. I believe I should be able to bundle libvlc with the application and use vlcj to display the video.

However, is libvlc platform independant and is it a good solution for this type of application?

Abdulla
  • 1,117
  • 4
  • 21
  • 44
  • 2
    Since VLC media player can support many OS platforms, libVLC has no issue with it; VLC media player is using libVLC to do wonderful things. Now, what you need is a libVLC wrapper in the language of your choice to invoke calls from libVLC library. In this case for Java, VLCJ is the only readily available choice you have. – ecle Apr 02 '12 at 14:06

1 Answers1

1

In short, yes. If you're just displaying a single video then it's really quite simple to use, and should work on both Mac and Linux without a problem.

From the pretty extensive research I did (and my needs were more complex than yours) I outlined it as the best available solution at present.

A side note, it may be that in the future (with Java 8 and JavaFX 3) we see much more extensive video support in JavaFX directly, which IMO would probably make that the best option if your requirements are simple. Something to look out for.

Community
  • 1
  • 1
Michael Berry
  • 70,193
  • 21
  • 157
  • 216