Package uk.co.caprica.vlcj.player

Examples of uk.co.caprica.vlcj.player.MediaMeta.release()


        // Dump out the meta
        for(File file : files) {
            String mrl = file.getAbsolutePath();
            MediaMeta meta = factory.getMediaMeta(mrl, true);
            Logger.info("{} -> {}", mrl, meta);
            meta.release();
        }

        // Dump out only the title and the length
        for(File file : files) {
            String mrl = file.getAbsolutePath();
View Full Code Here


        // Dump out only the title and the length
        for(File file : files) {
            String mrl = file.getAbsolutePath();
            MediaMeta meta = factory.getMediaMeta(mrl, true);
            Logger.info("{} -> {}ms", meta.getTitle(), meta.getLength());
            meta.release();
        }

        factory.release();
    }
View Full Code Here

        // Load the artwork into a buffered image (if available)
        final BufferedImage artwork = mediaMeta.getArtwork();
        System.out.println(artwork);

        // Orderly clean-up
        mediaMeta.release();
        factory.release();

        if(artwork != null) {
            JPanel cp = new JPanel() {
                private static final long serialVersionUID = 1L;
View Full Code Here

        // Write new meta data
        mediaMeta.setDescription("Oh isn't this a lovely tune.");
        mediaMeta.save();

        mediaMeta.release();

        // Re-read to confirm the updated value
        mediaMeta = factory.getMediaMeta(args[0], true);
        Logger.info("mediaMeta={}", mediaMeta);
        Logger.info("updated description={}", mediaMeta.getDescription());
View Full Code Here

        // Restore the original description
        mediaMeta.setDescription(originalDescription);
        mediaMeta.save();

        mediaMeta.release();

        // Re-read to confirm
        mediaMeta = factory.getMediaMeta(args[0], true);
        Logger.info("mediaMeta={}", mediaMeta);
        Logger.info("restored description={}", mediaMeta.getDescription());
View Full Code Here

        // Re-read to confirm
        mediaMeta = factory.getMediaMeta(args[0], true);
        Logger.info("mediaMeta={}", mediaMeta);
        Logger.info("restored description={}", mediaMeta.getDescription());

        mediaMeta.release();

        // Orderly clean-up
        factory.release();
    }
}
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.