Examples of VideoComponent


Examples of org.gstreamer.swing.VideoComponent

        }

        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                VideoComponent videoComponent = new VideoComponent();
                playbin.setVideoSink(videoComponent.getElement());

                JFrame frame = new JFrame("VideoPlayer");
                frame.getContentPane().add(videoComponent, BorderLayout.CENTER);
                frame.setPreferredSize(new Dimension(640, 480));
                frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
View Full Code Here

Examples of org.gstreamer.swt.overlay.VideoComponent

      shell.setText("SWT Video Test");

      Pipeline pipe = new Pipeline("SWT Overlay Test");
      Element src = ElementFactory.make("videotestsrc", "videotest");
      VideoComponent component = new VideoComponent(shell, SWT.NONE, true);
      component.getElement().setName("video");
      component.setKeepAspect(true);
      component.setLayoutData(new GridData(GridData.FILL_BOTH));
      Element sink = component.getElement();

      pipe.addMany(src, sink);
      Element.linkMany(src, sink);
      pipe.play();
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.