8000 catch illegal state exception when stopping media muxer · next-coder/flutter-webrtc@d25e18d · GitHub
[go: up one dir, main page]

Skip to content

Commit d25e18d

Browse files
committed
catch illegal state exception when stopping media muxer
1 parent abe32bc commit d25e18d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/record/AudioFileRenderer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ void release(MethodChannel.Result result) {
139139
audioEncoder.stop();
140140
audioEncoder.release();
141141
}
142-
mediaMuxer.stop();
142+
try {
143+
mediaMuxer.stop();
144+
} catch (Exception e) {
145+
// do nothing...
146+
}
143147
mediaMuxer.release();
144148
audioThread.quit();
145149

0 commit comments

Comments
 (0)
0