Package uk.co.caprica.vlcj.player

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


        // mediaPlayer.saveSnapshot();
        // mediaPlayer.saveSnapshot(200, 300);

        File file3 = new File("vlcj-snapshot1.png");
        file3.deleteOnExit();
        mediaPlayer.saveSnapshot(file3);
        BufferedImage image3 = ImageIO.read(file3);

        File file4 = new File("vlcj-snapshot2.png");
        file4.deleteOnExit();
        mediaPlayer.saveSnapshot(file4, 500, 0);
View Full Code Here


        mediaPlayer.saveSnapshot(file3);
        BufferedImage image3 = ImageIO.read(file3);

        File file4 = new File("vlcj-snapshot2.png");
        file4.deleteOnExit();
        mediaPlayer.saveSnapshot(file4, 500, 0);
        BufferedImage image4 = ImageIO.read(file4);

        BufferedImage image5 = mediaPlayer.getSnapshot();
        BufferedImage image6 = mediaPlayer.getSnapshot(300, 600);
View Full Code Here

        if(mediaPlayer.startMedia(mrl)) {
            mediaPlayer.setPosition(VLC_THUMBNAIL_POSITION);
            inPositionLatch.await(); // Might wait forever if error

            mediaPlayer.saveSnapshot(snapshotFile, imageWidth, 0);
            snapshotTakenLatch.await(); // Might wait forever if error

            mediaPlayer.stop();
        }
View Full Code Here

                pausedCondition.await();

                Condition<?> snapshotTakenCondition = new SnapshotTakenCondition(mediaPlayer) {
                    @Override
                    protected boolean onBefore() {
                        mediaPlayer.saveSnapshot();
                        return true;
                    }
                };
                snapshotTakenCondition.await();
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.