Examples of LatencyQuery


Examples of org.gstreamer.query.LatencyQuery

        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

Examples of org.gstreamer.query.LatencyQuery

        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

Examples of org.gstreamer.query.LatencyQuery

        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

Examples of org.gstreamer.query.LatencyQuery

        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
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.