org.gstreamer.message
Class DurationMessage
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Message
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.
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.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 |
DurationMessage
public DurationMessage(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 durationduration
- the new duration.
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.