mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Record audio on iOS
This commit is contained in:
parent
19d51ff1c7
commit
cd1e9aeb37
@ -7,7 +7,7 @@ import 'package:path_provider/path_provider.dart';
|
||||
import 'package:record/record.dart';
|
||||
|
||||
class RecordingDialog extends StatefulWidget {
|
||||
static const String recordingFileType = 'mp3';
|
||||
static const String recordingFileType = 'aac';
|
||||
const RecordingDialog({
|
||||
Key key,
|
||||
}) : super(key: key);
|
||||
@ -27,7 +27,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
|
||||
try {
|
||||
final tempDir = await getTemporaryDirectory();
|
||||
_recordedPath =
|
||||
'${tempDir.path}/recording${DateTime.now().microsecondsSinceEpoch}';
|
||||
'${tempDir.path}/recording${DateTime.now().microsecondsSinceEpoch}.${RecordingDialog.recordingFileType}';
|
||||
|
||||
final result = await Record.hasPermission();
|
||||
if (result != true) {
|
||||
|
Loading…
Reference in New Issue
Block a user