We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b446f commit 8f68767Copy full SHA for 8f68767
app/src/main/java/protect/videotranscoder/FFmpegUtil.java
@@ -121,6 +121,26 @@ public void onFailure(String message)
121
call(command, handler);
122
}
123
124
+ /**
125
+ * Cancel the current in-progress invocation of FFmpeg
126
+ */
127
+ public static void cancelCall()
128
+ {
129
+ String message;
130
+
131
+ if(ffmpeg == null || ffmpeg.isFFmpegCommandRunning() == false)
132
133
+ message = "Cancel failed, FFmpeg not running";
134
+ }
135
+ else
136
137
+ boolean result = ffmpeg.killRunningProcesses();
138
+ message = "Attempt to cancel FFmpeg: " + (result ? "success" : "failed");
139
140
141
+ Log.d(TAG, message);
142
143
144
@NonNull
145
private static String commandToString(String [] cmd)
146
{
0 commit comments