Package uk.co.caprica.vlcj.player

Examples of uk.co.caprica.vlcj.player.MediaMeta


        }

        // 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();
            MediaMeta meta = factory.getMediaMeta(mrl, true);
            Logger.info("{} -> {}ms", meta.getTitle(), meta.getLength());
            meta.release();
        }

        factory.release();
    }
View Full Code Here


        // Create a media player
        MediaPlayerFactory factory = new MediaPlayerFactory();

        // Get the meta data and dump it out
        MediaMeta mediaMeta = factory.getMediaMeta(args[0], true);
        Logger.debug("mediaMeta={}", mediaMeta);

        // 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

        // Create a media player
        MediaPlayerFactory factory = new MediaPlayerFactory();

        // Get the meta data and dump it out
        MediaMeta mediaMeta = factory.getMediaMeta(args[0], true);
        Logger.info("mediaMeta={}", mediaMeta);
        Logger.info("original description={}", mediaMeta.getDescription());

        // Keep the original description to restore it later
        String originalDescription = mediaMeta.getDescription();

        // 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());

        // 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());

        mediaMeta.release();

        // Orderly clean-up
        factory.release();
    }
View Full Code Here

            }

            MediaDetails mediaDetails = mediaPlayer.getMediaDetails();
            Logger.info("mediaDetails={}", mediaDetails);

            MediaMeta mediaMeta = mediaPlayer.getMediaMeta();
            Logger.info("mediaMeta={}", mediaMeta);

            final Dimension dimension = mediaPlayer.getVideoDimension();
            Logger.debug("dimension={}", dimension);
            if(dimension != null) {
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.player.MediaMeta

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.