Hi,

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.

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.");

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

        mediaPlayerComponent.getMediaPlayer().playMedia(
                "C:\\Users\\Tanha\\Videos\\Facebook.mp4");

    }

    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:

vlcj-2.4.0.jar

platform-3.5.2.jar

jna-4.0.0.jar

Be a part of the DaniWeb community

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