Examples of Tuner


Examples of org.gstreamer.interfaces.Tuner

    pipe.addMany(videosrc, videosink);
    Element.linkMany(videosrc, videosink);
           
    pipe.play();

    Tuner tun = Tuner.wrap(videosrc);

    List<TunerNorm> normList = tun.getNormList();
    for (TunerNorm n : normList) {
      System.out.println("Available norm: " + n.getLabel());
    }

    List<TunerChannel> chList = tun.getChannelList();

    for (TunerChannel ch: chList) {
      System.out.println("Channel ["+ch.getLabel()+"]: "+ch.isTuningChannel());
    }
   
    for (int i=0;;i++) {
      tun.setChannel(chList.get(i%chList.size()));
      try {
        Thread.sleep(1000);
      } catch (Exception e) {
      }     
    }
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.