-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
startStream not working in web #324
Comments
Does your browser logs something in the console? No exception in your I can't reproduce it. |
I'm not getting any logs. I've added try and catch no exception found. Where to find record_web version? i've added only void _startRecording() async {
try {
bool isAvailable = await recorder.hasPermission();
if (isAvailable) {
setState(() {
_isRecording = true;
});
var stream = await recorder
.startStream(const RecordConfig(encoder: AudioEncoder.pcm16bits,
));
stream.listen((event) {
print("listening");
});
} else {
// Handle permissions not granted
print('Permissions not granted');
}
} catch (e) {
print("error in start recording : $e");
}
} |
You can find I will need more info otherwise I won't be able to help you here... |
record_web: No i haven't tried with example project |
I had the same problem with my code and the example project. flutter upgrade --force and then flutter pub get After that, the example project and my code started working on the browser too. |
This issue should be resolved with 1.1.1 version. |
Package version
5.1.0
Environment
I've tried to listen to the stream once I start recording, but the problem is that I'm not receiving any data in the stream, and the print statement isn't getting invoked. I've tested the same app on Android with
AudioEncoder.pcm16bits
, and it's working fine.The text was updated successfully, but these errors were encountered: