From b142442551de5d6d9229580673900ffc6b97f93a Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Sun, 7 Nov 2021 23:47:53 +0000 Subject: [PATCH] add sessionStateToString method on android platform --- .../java/com/arthenica/ffmpegkit/FFmpegKitConfig.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/ffmpeg-kit-android-lib/src/main/java/com/arthenica/ffmpegkit/FFmpegKitConfig.java b/android/ffmpeg-kit-android-lib/src/main/java/com/arthenica/ffmpegkit/FFmpegKitConfig.java index 03b6bc4..a5eacac 100644 --- a/android/ffmpeg-kit-android-lib/src/main/java/com/arthenica/ffmpegkit/FFmpegKitConfig.java +++ b/android/ffmpeg-kit-android-lib/src/main/java/com/arthenica/ffmpegkit/FFmpegKitConfig.java @@ -1185,6 +1185,16 @@ public class FFmpegKitConfig { FFmpegKitConfig.globalLogRedirectionStrategy = logRedirectionStrategy; } + /** + * Converts session state to string. + * + * @param state session state + * @return string value + */ + public static String sessionStateToString(final SessionState state) { + return state.toString(); + } + /** *

Parses the given command into arguments. Uses space character to split the arguments. * Supports single and double quote characters.