Examples of EmbeddedMediaPlayerComponent


Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

     * Create a new test.
     */
    private BasicEmbeddedMediaPlayerComponentTest() {
        JFrame frame = new JFrame("vlcj Media Player Component Test");

        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();
        frame.setContentPane(mediaPlayerComponent);

        frame.setLocation(100, 100);
        frame.setSize(1050, 600);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

            }
        });
    }

    public MarqueeTest() {
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();

        cp = new JPanel();
        cp.setLayout(new BorderLayout());
        cp.add(mediaPlayerComponent, BorderLayout.CENTER);
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

        // Create a sub-class of the embedded media player component (it does not
        // need to be an inner class, it could be a standalone top-level class) and
        // override one or more of the template methods to tailor the component to
        // your needs (this example implementation doesn't actually do anything
        // different)...
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent() {
            @Override
            protected MediaPlayerFactory onGetMediaPlayerFactory() {
                return super.onGetMediaPlayerFactory();
            }
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

        frame = new JFrame("Win32 Full Screen Strategy");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setLocation(100, 100);
        frame.setSize(1200, 800);

        mediaPlayerComponent = new EmbeddedMediaPlayerComponent() {
            @Override
            protected FullScreenStrategy onGetFullScreenStrategy() {
                return new Win32FullScreenStrategy(frame);
            }
        };
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

        Thread.currentThread().join();
    }

    public FallbackYouTubePlayer() {
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent() {

            @Override
            public void mediaSubItemAdded(MediaPlayer mediaPlayer, libvlc_media_t subItem) {
                // Show the sub-item being added for purposes of the test...
                System.out.println("mediaSubItemAdded: " + mediaPlayerComponent.getMediaPlayer().mrl(subItem));
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

            }
        });
    }

    public StatsTest() {
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();

        readBytesLabel = new JLabel("Read Bytes:");
        inputBitrateLabel = new JLabel("Input Bitrate:");
        demuxReadBytesLabel = new JLabel("Deumx Read Bytes:");
        demuxBitrateLabel = new JLabel("Demux Bitrate:");
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

        frame = new JFrame("LibX11 Full Screen Strategy");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setLocation(100, 100);
        frame.setSize(1200, 800);

        mediaPlayerComponent = new EmbeddedMediaPlayerComponent() {
            @Override
            protected FullScreenStrategy onGetFullScreenStrategy() {
                return new XFullScreenStrategy(frame);
            }
        };
View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

    /**
     * Create the user interface.
     */
    public InputListenerTest() {
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();

        // You *must* do this...
        mediaPlayerComponent.getMediaPlayer().setEnableKeyInputHandling(false);
        mediaPlayerComponent.getMediaPlayer().setEnableMouseInputHandling(false);

View Full Code Here

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

        if(args.length != 1) {
            System.out.println("Specify an MRL to play");
            System.exit(1);
        }

        final EmbeddedMediaPlayerComponent mediaPlayerComponent = new EmbeddedMediaPlayerComponent();

        JFrame f = new JFrame("Test Player");
        f.setIconImage(new ImageIcon(MinimalTestPlayer.class.getResource("/icons/vlcj-logo.png")).getImage());
        f.setSize(800, 600);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                mediaPlayerComponent.release(true);
            }
        });
        f.setContentPane(mediaPlayerComponent);
        f.setVisible(true);

        mediaPlayerComponent.getMediaPlayer().playMedia(args[0]);

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

Examples of uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent

            }
        });
    }

    public LogoTest() {
        mediaPlayerComponent = new EmbeddedMediaPlayerComponent();

        cp = new JPanel();
        cp.setLayout(new BorderLayout());
        cp.add(mediaPlayerComponent, BorderLayout.CENTER);
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.