Package 

Interface MediaEncoderEngine.Listener


  • 
    public interface MediaEncoderEngine.Listener
    
                        

    Receives the stop event callback to know when the videowas written (or what went wrong).

    • Method Summary

      Modifier and Type Method Description
      abstract void onEncodingStart() Called when encoding started.
      abstract void onEncodingStop() Called when encoding stopped.
      abstract void onEncodingEnd(int reason, @Nullable() Exception e) Called when encoding ended for some reason.If there's an exception, it failed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onEncodingStart

         abstract void onEncodingStart()

        Called when encoding started.

      • onEncodingStop

         abstract void onEncodingStop()

        Called when encoding stopped. At this point the muxer or the encoders might still beprocessing data, but we have stopped receiving input (recording video and audio frames).Actually, we will stop very soon.The onEncodingEnd callback will soon be calledwith the results.

      • onEncodingEnd

         abstract void onEncodingEnd(int reason, @Nullable() Exception e)

        Called when encoding ended for some reason.If there's an exception, it failed.

        Parameters:
        reason - the reason
        e - the error, if present