org.gstreamer.query
Class LatencyQuery

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.MiniObject
                      extended by org.gstreamer.Query
                          extended by org.gstreamer.query.LatencyQuery

public class LatencyQuery
extends Query


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
LatencyQuery()
          Constructs a new query stream position query object.
LatencyQuery(org.gstreamer.lowlevel.NativeObject.Initializer init)
           
 
Method Summary
 ClockTime getMaximumLatency()
          Gets the maximum latency of the live element.
 ClockTime getMinimumLatency()
          Gets the minimum latency of the live element.
 boolean isLive()
          Gets whether the element has a live element upstream or not.
 void setLatency(boolean live, ClockTime minLatency, ClockTime maxLatency)
          Answers a latency query.
 java.lang.String toString()
          Gets the latency as a user-readable string.
 
Methods inherited from class org.gstreamer.Query
getStructure, makeWritable
 
Methods inherited from class org.gstreamer.MiniObject
disposeNativeHandle, isWritable, makeWritable, objectFor, ref, unref
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatencyQuery

public LatencyQuery(org.gstreamer.lowlevel.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.

Method Detail

setLatency

public void setLatency(boolean live,
                       ClockTime minLatency,
                       ClockTime maxLatency)
Answers a latency query.

Parameters:
live - if there is a live element upstream
minLatency - the minimal latency of the live element
maxLatency - 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 org.gstreamer.lowlevel.NativeObject
Returns:
A string representing the latency.