Examples of addMany()


Examples of org.gstreamer.Pipeline.addMany()

        Element src = ElementFactory.make("fakesrc", "Source");
        Element sink = ElementFactory.make("fakesink", "Destination");
       
       
        // Add the elements to the Bin
        pipe.addMany(src, sink);
       
        // Link fakesrc to fakesink so data can flow
        src.link(sink);
       
        // Start the pipeline playing
View Full Code Here

Examples of org.gstreamer.Pipeline.addMany()

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

      shell.open();
      while (!shell.isDisposed()) {
View Full Code Here

Examples of org.gstreamer.Pipeline.addMany()

        TypeFind typefind = new TypeFind("typefinder");
       
        /* you would normally check that the elements were created properly */
       
        /* put together a pipeline */
        pipeline.addMany(source, typefind);
        Element.linkMany(source, typefind);
       
        /* listen for types found */
        typefind.connect(new TypeFind.HAVE_TYPE() {

View Full Code Here

Examples of org.gstreamer.Pipeline.addMany()

        Element src = ElementFactory.make("audiotestsrc", "src");
        src.set("wave", 2);
        Element convert = ElementFactory.make("audioconvert", "convert");
        Element sink = ElementFactory.make("fakesink", "sink");
        pipe.addMany(src, convert, sink);
        Element.linkMany(src, convert, sink);
        return pipe;
    }
    public static void main(String[] args) {
        //
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.