File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
SSffmpegVideoOperation/src/main/java/com/simform/videooperations Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ FFmpeg Android runs on the following architectures:
7676
7777 ```
7878 dependencies {
79- implementation 'com.github.SimformSolutionsPvtLtd:SSffmpegVideoOperation:1.0.3 '
79+ implementation 'com.github.SimformSolutionsPvtLtd:SSffmpegVideoOperation:1.0.4 '
8080 }
8181 ```
8282
Original file line number Diff line number Diff line change @@ -22,6 +22,18 @@ object CallBackOfQuery {
2222 gate.await()
2323 }
2424
25+ fun cancelProcess (executionId : Long ) {
26+ if (! executionId.equals(0 )) {
27+ FFmpeg .cancel(executionId)
28+ } else {
29+ FFmpeg .cancel()
30+ }
31+ }
32+
33+ fun cancelProcess () {
34+ FFmpeg .cancel()
35+ }
36+
2537 private fun process (context : AppCompatActivity , query : Array <String >, ffmpegCallBack : FFmpegCallBack ) {
2638 Config .enableLogCallback { logMessage ->
2739 val logs = LogMessage (logMessage.executionId, logMessage.level, logMessage.text)
You can’t perform that action at this time.
0 commit comments