I have been reviewing and reading the docs for the VLCJ but unfortunately could not come to a conclusion of configuring and running it correctly.

It is appreciated if someone placing an example, snippet or tutorial of that.

Recommended Answers

All 3 Replies

Thanks for the reply, yeah I have both part but getting the error ...

[03b70b50] main libvlc error: No plugins found! Check your VLC installation.
Exception in thread "main" java.lang.RuntimeException: Failed to initialise libvlc.

import uk.co.caprica.vlcj.binding.LibVlc;
import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent;
import uk.co.caprica.vlcj.runtime.RuntimeUtil;

import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;

public class Tutorial1A {

    private EmbeddedMediaPlayerComponent mediaPlayerComponent;

    public Tutorial1A() {
        // Ensure we're using the 32bit jdk.
        System.out.println("jdk version:  "
                + System.getProperty("sun.arch.data.model") + " bits.");

                "C:\\Program Files\\VideoLAN\\VLC");
        Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();



    public static void main(String[] args) {
        new Tutorial1A();

I am sure the problem is with verison because I am following the most latest verison as follow:




Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.