org.gstreamer
Class Event

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
Direct Known Subclasses:
BufferSizeEvent, EOSEvent, FlushStartEvent, FlushStopEvent, LatencyEvent, NavigationEvent, NewSegmentEvent, QOSEvent, SeekEvent, TagEvent

public class Event
extends MiniObject

Base type of all events.

Events are passed between elements in parallel to the data stream. Some events are serialized with buffers, others are not. Some events only travel downstream, others only upstream. Some events can travel both upstream and downstream.

The events are used to signal special conditions in the datastream such as EOS (end of stream) or the start of a new stream-segment.

Events are also used to flush the pipeline of any pending data.

See Also:
Pad.pushEvent(org.gstreamer.Event), Pad.sendEvent(org.gstreamer.Event), Element.sendEvent(org.gstreamer.Event)

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
Event(org.gstreamer.lowlevel.NativeObject.Initializer init)
          This constructor is for internal use only.
 
Method Summary
 Structure getStructure()
          Gets the structure containing the data in this event.
 
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

Event

public Event(org.gstreamer.lowlevel.NativeObject.Initializer init)
This constructor is for internal use only.

Parameters:
init - initialization data.
Method Detail

getStructure

public Structure getStructure()
Gets the structure containing the data in this event.

Returns:
a structure.