-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Labels
Description
Package version
5.1.2
Environment
- OS: Linux
- Browser : All
Describe the bug
All the things are working correct on all the platforms when the project is build and deployed on our local dev server, but when i deploy a production build on their server and then try to start recording the audio nothing happens.
They have hosted the web app on their local server of Apache/Linux and for them it is not working.
A clear and concise description of what the bug is.
- Issue is that the user is not able to start the recording even when all the things are same for production and dev.
`Future _start() async {
await stop();
try {
const encoder = AudioEncoder.wav;
if (!await _isEncoderSupported(encoder)) {
Globalsnackbardisplayer().displaySnackBar('${encoder.name}is not supported.');
if (widget.selectedAudio != null) {
widget.selectedAudio!(
widget.audioPlayerFilePath,
hadPermission,
);
}
Navigator.of(context).pop();
return;
}
const config = RecordConfig(encoder: encoder, numChannels: 1);
// Record to file
await recordFile(_audioRecorder, config);
_recordDuration = 0;
widget.audioPlayerFilePath = null;
hadPermission = true;
_startTimer();
} catch (e) {
Globalsnackbardisplayer().displaySnackBar(e.toString());
if (widget.selectedAudio != null) {
widget.selectedAudio!(
widget.audioPlayerFilePath,
false,
);
}
Navigator.of(context).pop();
}
}`
To Reproduce
- Dont have any