Package uk.co.caprica.vlcj.player.embedded

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


        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

        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

        });

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

        mediaPlayer.playMedia(mrl);

        LibXUtil.setFullScreenWindow(f, true);
    }

    private class Overlay extends Window {
View Full Code Here

        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

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.