Package org.gstreamer.elements

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


                        }
                    });
                } else {
                    XOverlay.wrap(videoSink).setWindowHandle(canvas);
                }
                player.play();      
           
        });
    }
}
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

       
        // Set the file to play
        playbin.setInputFile(new File(args[0]));
       
        // 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

               
                // Add the video component as the playbin video output
                playbin.setVideoSink(videoComponent.getElement());
               
                // Start the pipeline playing
                playbin.play();
               
                //
                // Initialise the top-level frame and add the video component
                //
                JFrame frame = new JFrame("VideoPlayer");
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

            }
          }
        }
      }
    });
    playbin.play();
//    playbin.pause();
//    playbin.seek(ClockTime.fromSeconds(5));
//    playbin.play();
    Gst.main();
    playbin.setState(State.NULL);
View Full Code Here

        PlayBin2 playbin = new PlayBin2("VideoFrameCapture"); //NON-NLS
        playbin.setInputFile(file);
        playbin.setVideoSink(videoSink);

        // this is necessary to get a valid duration value
        StateChangeReturn ret = playbin.play();
        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.problemPlay.msg"));
        }
View Full Code Here

            //System.out.println("Seeking to " + timeStamp + "milliseconds.");
            if (!playbin.seek(timeStamp, unit)) {
                logger.log(Level.INFO, "There was a problem seeking to " + timeStamp + " " + unit.name().toLowerCase()); //NON-NLS
            }
           
            ret = playbin.play();
            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.problemPlayCaptFrame.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.