Interface VideoFrameProcessor.Listener

  • Enclosing interface:
    VideoFrameProcessor

    public static interface VideoFrameProcessor.Listener
    Listener for asynchronous frame processing events.

    All listener methods must be called from the Executor passed in at creation.

    • Method Detail

      • onOutputFrameAvailableForRendering

        void onOutputFrameAvailableForRendering​(long presentationTimeUs)
        Called when an output frame with the given presentationTimeUs becomes available for rendering.
        Parameters:
        presentationTimeUs - The presentation time of the frame, in microseconds.
      • onError

        void onError​(VideoFrameProcessingException exception)
        Called when an exception occurs during asynchronous video frame processing.

        If an error occurred, consuming and producing further frames will not work as expected and the VideoFrameProcessor should be released.

      • onEnded

        void onEnded()
        Called after the VideoFrameProcessor has rendered its final output frame.