org.gstreamer.message
Class DurationMessage

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.Message
                          extended by org.gstreamer.message.DurationMessage

public class DurationMessage
extends Message

The duration of a pipeline has changed. The application can get the new duration with a duration 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.Message
messageStruct
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
DurationMessage(GstObject src, Format format, long duration)
          Creates a new Buffering message.
DurationMessage(org.gstreamer.lowlevel.NativeObject.Initializer init)
          Creates a new Buffering message.
 
Method Summary
 long getDuration()
          Gets the duration of this message.
 Format getFormat()
          Gets the format of the duration contained in this message.
 
Methods inherited from class org.gstreamer.Message
copy, getSource, getStructure, getType, 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, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DurationMessage

public DurationMessage(org.gstreamer.lowlevel.NativeObject.Initializer init)
Creates a new Buffering message.

Parameters:
init - internal initialization data.

DurationMessage

public DurationMessage(GstObject src,
                       Format format,
                       long duration)
Creates a new Buffering message.

Parameters:
src - the object originating the message.
format - the format of the duration
duration - the new duration.
Method Detail

getFormat

public Format getFormat()
Gets the format of the duration contained in this message.

Returns:
the format of the duration.

getDuration

public long getDuration()
Gets the duration of this message.

Returns:
the new duration.