All Known Implementing Classes:
RenderCallbackAdapter

public interface RenderCallback
Specification for a component that wishes to be called back to process video frames.

The render call-back provides access to the native memory buffer, if instead the full RGB integer data is required for the full video frame then consider using RenderCallbackAdapter.

The render call-back is invoked by a native thread.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    display(MediaPlayer mediaPlayer, ByteBuffer[] nativeBuffers, BufferFormat bufferFormat)
    Call-back when ready to display a video frame.
  • Method Details

    • display

      void display(MediaPlayer mediaPlayer, ByteBuffer[] nativeBuffers, BufferFormat bufferFormat)
      Call-back when ready to display a video frame.

      Implementations of this method must execute as quickly as possible.

      Parameters:
      mediaPlayer - media player to which the event relates
      nativeBuffers - video data for one frame
      bufferFormat - information about the format of the buffer used