org.gstreamer
Interface Bus.BUFFERING

Enclosing class:
Bus

public static interface Bus.BUFFERING

Signal emitted when the pipeline is buffering data.

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

Method Summary
 void bufferingData(GstObject source, int percent)
          Called when a Pipeline element needs to buffer data before it can continue processing.
 

Method Detail

bufferingData

void bufferingData(GstObject source,
                   int percent)
Called when a Pipeline element needs to buffer data before it can continue processing.

percent is a value between 0 and 100. A value of 100 means that the buffering completed.

When percent is < 100 the application should PAUSE a PLAYING pipeline. When percent is 100, the application can set the pipeline (back) to PLAYING.

The application must be prepared to receive BUFFERING messages in the PREROLLING state and may only set the pipeline to PLAYING after receiving a message with percent set to 100, which can happen after the pipeline completed prerolling.

Parameters:
source - the element which posted the message.
percent - the percentage of buffering that has completed.