Skip to content

Commit 0220b2d

Browse files
Merge pull request #8 from SimformSolutionsPvtLtd/issue_#7
- #7 issue fixed
2 parents 69e8cfb + 51b6bca commit 0220b2d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

SSffmpegVideoOperation/src/main/java/com/simform/videooperations/CallBackOfQuery.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)