Examples of SeekingQuery


Examples of org.gstreamer.query.SeekingQuery

        assertEquals("Format not set correctly", Format.TIME, query.getFormat());
        assertEquals("Start time not set correctly", 0, query.getStart());
        assertEquals("End time not set correctly", end.toNanos(), query.getEnd());
    }
    @Test public void seekingQuery() {
        SeekingQuery query = new SeekingQuery(Format.TIME);
        ClockTime start = ClockTime.ZERO;
        ClockTime end = ClockTime.fromMillis(1000);
        query.setSeeking(Format.TIME, true, start.toNanos(), end.toNanos());
        assertEquals("Format not set", Format.TIME, query.getFormat());
        assertEquals("Start time not set", start.toNanos(), query.getStart());
        assertEquals("End time not set", end.toNanos(), query.getEnd());
    }
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.