Package uk.co.caprica.vlcj.binding

Examples of uk.co.caprica.vlcj.binding.LibVlc


     * Execute test test.
     *
     * @param args command-line arguments
     */
    public static void main(String[] args) {
        LibVlc libvlc = LibVlcFactory.factory().atLeast("2.0.0").create();
        System.out.println(libvlc);
    }
View Full Code Here


* Specify a media file as the only command-line argument.
*/
public class BareBonesTest extends VlcjTest {

    public static void main(String[] args) throws Exception {
        LibVlc libvlc = LibVlc.INSTANCE;

        libvlc_instance_t instance = libvlc.libvlc_new(0, new String[] {});

        libvlc_media_player_t mediaPlayer = libvlc.libvlc_media_player_new(instance);
        libvlc_media_t media = libvlc.libvlc_media_new_path(instance, args[0]);
        libvlc.libvlc_media_player_set_media(mediaPlayer, media);
        libvlc.libvlc_media_player_play(mediaPlayer);

        Thread.sleep(10000);

        libvlc.libvlc_media_player_stop(mediaPlayer);
        libvlc.libvlc_media_release(media);
        libvlc.libvlc_media_player_release(mediaPlayer);

        libvlc.libvlc_release(instance);

        System.exit(0);
    }
View Full Code Here

* LUA metadata script.
*/
public class BareBonesParseTest extends VlcjTest {

    public static void main(String[] args) throws Exception {
        LibVlc libvlc = LibVlc.INSTANCE;

        libvlc_instance_t instance = libvlc.libvlc_new(0, new String[] {});

        libvlc_media_t media = libvlc.libvlc_media_new_path(instance, args[0]);

        libvlc.libvlc_media_parse(media); // <--- FATAL VM CRASH IF RUNNING on 32-bit Ubuntu and Java7

        Thread.sleep(1000);

        libvlc.libvlc_media_release(media);

        libvlc.libvlc_release(instance);

        System.exit(0);
    }
View Full Code Here

    private EmbeddedMediaPlayer mediaPlayer;

    private Equalizer equalizer;

    public static void main(final String[] args) throws Exception {
        LibVlc libVlc = LibVlcFactory.factory().create();

        Logger.info("  version: {}", libVlc.libvlc_get_version());
        Logger.info(" compiler: {}", libVlc.libvlc_get_compiler());
        Logger.info("changeset: {}", libVlc.libvlc_get_changeset());

        setLookAndFeel();

        SwingUtilities.invokeLater(new Runnable() {
            @Override
View Full Code Here

* Trivial test to dump out the native event names.
*/
public class EventNameTest extends VlcjTest {

    public static void main(String[] args) {
        LibVlc libvlc = LibVlc.INSTANCE;

        for(libvlc_event_e event : libvlc_event_e.values()) {
            int val = event.intValue();
            System.out.printf("%4d %04x %s%n", val, val, libvlc.libvlc_event_type_name(val));
        }
    }
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.binding.LibVlc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.