Package org.gstreamer.query

Examples of org.gstreamer.query.LatencyQuery$API


   * Example test method
   */

  @Test
  public void simple() {
    _stem_ impl = new _stem_Impl();
   
    impl.say("Hello World");
  }
View Full Code Here


        assertNotNull("gst_query_new_latency() returned null", query);
        assertTrue("Returned query not instance of LatencyQuery", query instanceof LatencyQuery);
    }
    @Test
    public void latencyIsLive() {
        LatencyQuery query = new LatencyQuery();
        query.setLatency(true, ClockTime.ZERO, ClockTime.ZERO);
        assertTrue("isLive not set to true", query.isLive());
        query.setLatency(false, ClockTime.ZERO, ClockTime.ZERO);
        assertFalse("isLive not set to true", query.isLive());
    }
View Full Code Here

        query.setLatency(false, ClockTime.ZERO, ClockTime.ZERO);
        assertFalse("isLive not set to true", query.isLive());
    }
    @Test
    public void getMinimumLatency() {
        LatencyQuery query = new LatencyQuery();
        final ClockTime MIN = ClockTime.fromMillis(13000);
        query.setLatency(false, MIN, ClockTime.valueOf(~0L, TimeUnit.SECONDS));
        assertEquals("Min latency not set", MIN, query.getMinimumLatency());
    }
View Full Code Here

        query.setLatency(false, MIN, ClockTime.valueOf(~0L, TimeUnit.SECONDS));
        assertEquals("Min latency not set", MIN, query.getMinimumLatency());
    }
    @Test
    public void getMaximumLatency() {
        LatencyQuery query = new LatencyQuery();
        final ClockTime MAX = ClockTime.fromMillis(123000);
        query.setLatency(false, ClockTime.ZERO, MAX);
        assertEquals("Min latency not set", MAX, query.getMaximumLatency());
    }
View Full Code Here

        assertEquals("Min latency not set", MAX, query.getMaximumLatency());
    }
    
    @Test
    public void latencyQueryToString() {
        LatencyQuery query = new LatencyQuery();
        ClockTime minLatency = ClockTime.fromMillis(13000);
        ClockTime maxLatency = ClockTime.fromMillis(200000);
        query.setLatency(true, minLatency, maxLatency);
        String s = query.toString();
        assertTrue("toString() did not return isLive", s.contains("live=true"));
        assertTrue("toString() did not return minLatency", s.contains("min=" + minLatency));
        assertTrue("toString() did not return minLatency", s.contains("max=" + maxLatency));
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.query.LatencyQuery$API

Copyright © 2018 www.massapicom. 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.