Package com.arthenica.ffmpegkit
Interface ExecuteCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExecuteCallbackCallback function invoked when an asynchronous session ends running.
Session has either
SessionState.COMPLETEDorSessionState.FAILEDstate when the callback is invoked.If it has
SessionState.COMPLETEDstate,ReturnCodeshould be checked to see the execution result.If
getStatereturnsSessionState.FAILEDthengetFailStackTraceshould be used to get the failure reason.switch (session.getState()) { case COMPLETED: { ReturnCode returnCode = session.getReturnCode(); } break; case FAILED: { String failStackTrace = session.getFailStackTrace(); } break; }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(Session session)Called when an asynchronous session ends running.
-
-
-
Method Detail
-
apply
void apply(Session session)
Called when an asynchronous session ends running.
- Parameters:
session- session
-
-