org.gstreamer
Interface Bus.DURATION

Enclosing class:
Bus

public static interface Bus.DURATION

Signal sent when a new duration message is posted by an element that know the duration of a stream in a specific format.

This message is received by bins and is used to calculate the total duration of a pipeline.

Elements may post a duration message with a duration of ClockTime.NONE to indicate that the duration has changed and the cached duration should be discarded. The new duration can then be retrieved via a query. The application can get the new duration with a duration query.

See Also:
Bus.connect(DURATION), Bus.disconnect(DURATION)

Method Summary
 void durationChanged(GstObject source, Format format, long duration)
          Called when a new duration message is posted on the Bus.
 

Method Detail

durationChanged

void durationChanged(GstObject source,
                     Format format,
                     long duration)
Called when a new duration message is posted on the Bus.

Parameters:
source - the element which posted the message.
format - the format of the duration
duration - the new duration.