-
public interface MediaEncoderEngine.ListenerReceives the stop event callback to know when the videowas written (or what went wrong).
-
-
Method Summary
Modifier and Type Method Description abstract voidonEncodingStart()Called when encoding started. abstract voidonEncodingStop()Called when encoding stopped. abstract voidonEncodingEnd(int reason, @Nullable() Exception e)Called when encoding ended for some reason.If there's an exception, it failed. -
-
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 reasone- the error, if present
-
-
-
-