org.gstreamer.event
Class LatencyEvent

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.Event
                          extended by org.gstreamer.event.LatencyEvent

public class LatencyEvent
extends Event

Notification of new latency adjustment.

The event is sent upstream from the sinks and notifies elements that they should add an additional latency to the timestamps before synchronising against the clock.

The latency is mostly used in live sinks and is always expressed in the time format.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
LatencyEvent(ClockTime latency)
          Create a new latency event.
LatencyEvent(NativeObject.Initializer init)
          This constructor is for internal use only.
 
Method Summary
 ClockTime getLatency()
          Gets the latency in the latency event.
 
Methods inherited from class org.gstreamer.Event
getStructure
 
Methods inherited from class org.gstreamer.MiniObject
disposeNativeHandle, isWritable, makeWritable, 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, objectFor, objectFor, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatencyEvent

public LatencyEvent(NativeObject.Initializer init)
This constructor is for internal use only.

Parameters:
init - initialization data.

LatencyEvent

public LatencyEvent(ClockTime latency)
Create a new latency event.

Parameters:
latency - the new latency value to add to timestamps.
Method Detail

getLatency

public ClockTime getLatency()
Gets the latency in the latency event.

Returns:
the latency.