Skip to content

Commit

Permalink
switch if statement to if expression in MediaRecorder to fix opus not…
Browse files Browse the repository at this point in the history
… being returned.

as per title
  • Loading branch information
hyhugh authored Sep 2, 2024
1 parent 809a5e4 commit c9bcde7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ class MediaRecorder(
AudioEncoder.opus -> {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
MediaRecorder.OutputFormat.OGG
} else {
MediaRecorder.OutputFormat.MPEG_4
}
MediaRecorder.OutputFormat.MPEG_4
}

else -> MediaRecorder.OutputFormat.DEFAULT
Expand Down

0 comments on commit c9bcde7

Please sign in to comment.