Package org.gstreamer.elements

Examples of org.gstreamer.elements.PlayBin2.stop()


        // Start the pipeline playing
        playbin.play();
        Gst.main();
       
        // Clean up (gstreamer requires elements to be in State.NULL before disposal)
        playbin.stop();
    }
}
View Full Code Here


        // Start the pipeline playing
        playbin.play();
        Gst.main();
       
        // Clean up (gstreamer requires elements to be in State.NULL before disposal)
        playbin.stop();
    }
}
View Full Code Here

        // In theory, an ASYNC_DONE from the pipeline corresponds with the demux
        // completing parsing the media file
        //
        pipe.getBus().connect(new Bus.ASYNC_DONE() {
            public void asyncDone(GstObject source) {
                pipe.stop();
                done.countDown();
            }
        });
        audio.set("signal-handoffs", true);
        video.set("signal-handoffs", true);
View Full Code Here

        //
        // As soon as data starts to flow, it means all tags have been found
        //
        BaseSink.HANDOFF handoff = new BaseSink.HANDOFF() {
            public void handoff(BaseSink sink, Buffer buffer, Pad pad) {
                pipe.stop();
                done.countDown();
            }
        };
        audio.connect(handoff);
        video.connect(handoff);
View Full Code Here

        pipe.pause();
        try {
            done.await();
        } catch (InterruptedException ex) {
        }
        pipe.stop();
    }
}
View Full Code Here

       
        //
        // Wait until Gst.quit() is called.
        //
        Gst.main();
        playbin.stop();
    }
}
View Full Code Here

       
        // Start the pipeline playing
        playbin.play();
        Gst.main();
        // Clean up (gstreamer requires elements to be in State.NULL before disposal)
        playbin.stop();
        Gst.deinit();
    }
}
View Full Code Here

                    logger.log(Level.INFO, "InterruptedException occurred while waiting for frame capture.", e); //NON-NLS
                }
            }
            Image image = rgbListener.getImage();

            ret = playbin.stop();
            if (ret == StateChangeReturn.FAILURE) {
                // add this file to the set of known bad ones
                badVideoFiles.add(file.getName());
                throw new Exception(
                        NbBundle.getMessage(this.getClass(), "GstVideoPanel.exception.problemStopCaptFrame.msg"));
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.