From de508bbeddff92aa087412c4e20660d0e65fe03c Mon Sep 17 00:00:00 2001 From: llfbandit Date: Thu, 23 May 2024 17:20:04 +0200 Subject: [PATCH] fix: Stopping stream recording throws ExceptionInterruptedException. --- record_android/CHANGELOG.md | 3 +++ .../com/llfbandit/record/record/recorder/RecordThread.kt | 2 +- record_android/pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/record_android/CHANGELOG.md b/record_android/CHANGELOG.md index 0f3382ca..b365fe8e 100644 --- a/record_android/CHANGELOG.md +++ b/record_android/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.2.1 +* fix: Stopping stream recording throws ExceptionInterruptedException. + ## 1.2.0 * feat: Re-introduced native MediaRecorder. Set `RecordConfig.androidConfig.useLegacy` to `true`. This comes with limitations compared to advanced recorder. * feat: Advanced AudioRecorder will try to adjust given configuration if unsupported or out of range (sample rate, bitrate and channel count). diff --git a/record_android/android/src/main/kotlin/com/llfbandit/record/record/recorder/RecordThread.kt b/record_android/android/src/main/kotlin/com/llfbandit/record/record/recorder/RecordThread.kt index 31db61fd..a3fd4e3a 100644 --- a/record_android/android/src/main/kotlin/com/llfbandit/record/record/recorder/RecordThread.kt +++ b/record_android/android/src/main/kotlin/com/llfbandit/record/record/recorder/RecordThread.kt @@ -65,7 +65,7 @@ class RecordThread( updateState(RecordState.STOP) completion.countDown() - executorService.shutdownNow() + executorService.shutdown() } fun isRecording(): Boolean { diff --git a/record_android/pubspec.yaml b/record_android/pubspec.yaml index ea98ae5e..4572c632 100644 --- a/record_android/pubspec.yaml +++ b/record_android/pubspec.yaml @@ -1,6 +1,6 @@ name: record_android description: Android specific implementation for record package called by record_platform_interface. -version: 1.2.0 +version: 1.2.1 homepage: https://github.com/llfbandit/record/tree/master/record_android environment: