org.gstreamer.query
Class LatencyQuery
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Query
org.gstreamer.query.LatencyQuery
public class LatencyQuery
- extends Query
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
LatencyQuery
public LatencyQuery(NativeObject.Initializer init)
LatencyQuery
public LatencyQuery()
- Constructs a new query stream position query object. A position query is
used to query the current position of playback in the streams, in some format.
setLatency
public void setLatency(boolean live,
ClockTime minLatency,
ClockTime maxLatency)
- Answers a latency query.
- Parameters:
live
- if there is a live element upstreamminLatency
- the minimal latency of the live elementmaxLatency
- the maximal latency of the live element
isLive
public boolean isLive()
- Gets whether the element has a live element upstream or not.
- Returns:
- true if the element has a live element upstream.
getMinimumLatency
public ClockTime getMinimumLatency()
- Gets the minimum latency of the live element.
- Returns:
- The minimum latency of the live element.
getMaximumLatency
public ClockTime getMaximumLatency()
- Gets the maximum latency of the live element.
- Returns:
- The maximum latency of the live element.
toString
public java.lang.String toString()
- Gets the latency as a user-readable string.
- Overrides:
toString
in class NativeObject
- Returns:
- A string representing the latency.