Examples of playMedia()


Examples of uk.co.caprica.vlcj.player.MediaPlayer.playMedia()

                factory.release();
                System.exit(0);
            }
        });

        mediaPlayer.playMedia(args[0]);

        Thread.currentThread().join();
    }
}
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.playMedia()

            @Override
            public void actionPerformed(ActionEvent e) {
                currentIndex ++ ;
                if(currentIndex < files.size()) {
                    mediaPlayer.playMedia(files.get(currentIndex).getAbsolutePath());
                }
            }
        });

        p.getInputMap().put(KeyStroke.getKeyStroke("SPACE"), "next");
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.playMedia()

        if(files.isEmpty()) {
            System.out.println("No media files found");
            System.exit(1);
        }

        mediaPlayer.playMedia(files.get(0).getAbsolutePath());
    }

    private static List<File> scan(File root) {
        List<File> result = new ArrayList<File>(200);
        scan(root, result);
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.playMedia()

        List<File> files = scanMedia(new File("/movies"));

        Thread.sleep(3000);

        for(File file : files) {
            mediaPlayer.playMedia(file.getAbsolutePath());
            Thread.sleep(500);
            mediaPlayer.setChapter(4);
            Thread.sleep(2000);
        }
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.playMedia()

        });

        mediaPlayer.setOverlay(new Overlay(f));
        mediaPlayer.enableOverlay(true);

        mediaPlayer.playMedia(mrl);

        LibXUtil.setFullScreenWindow(f, true);
    }

    private class Overlay extends Window {
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.playMedia()

        f.add(canvas);
        f.setSize(800, 600);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);

        mediaPlayer.playMedia(media,
            options,
            ":no-sout-rtp-sap",
            ":no-sout-standard-sap",
            ":sout-all",
            ":sout-keep"
View Full Code Here

Examples of uk.co.caprica.vlcj.player.headless.HeadlessMediaPlayer.playMedia()

        System.out.println("Streaming '" + media + "' to '" + options + "'");

        MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(args);
        HeadlessMediaPlayer mediaPlayer = mediaPlayerFactory.newHeadlessMediaPlayer();
        mediaPlayer.playMedia(media,
            options,
            ":no-sout-rtp-sap",
            ":no-sout-standard-sap",
            ":sout-all",
            ":sout-keep"
View Full Code Here

Examples of uk.co.caprica.vlcj.player.headless.HeadlessMediaPlayer.playMedia()

        System.out.println("Streaming '" + media + "' to '" + options + "'");

        MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(args);
        HeadlessMediaPlayer mediaPlayer = mediaPlayerFactory.newHeadlessMediaPlayer();
        mediaPlayer.playMedia(media, options);

        // Don't exit
        Thread.currentThread().join();
    }
View Full Code Here

Examples of uk.co.caprica.vlcj.player.headless.HeadlessMediaPlayer.playMedia()

        System.out.println("Streaming '" + media + "' to '" + options + "'");

        MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(args);
        HeadlessMediaPlayer mediaPlayer = mediaPlayerFactory.newHeadlessMediaPlayer();

        mediaPlayer.playMedia(media,
            options,
            ":no-sout-rtp-sap",
            ":no-sout-standard-sap",
            ":sout-all",
            ":sout-keep"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.