-
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
On MacOS cannot stop recording #437
Comments
Thanks for reporting. |
I have the exact same issue:, building for a macos app. I can get the list of devices, IsRecording and isEncoderSupported values. But as soon as I await for the path from .stop() I never get the result and the file is never written. final path = await recorder.stop(); I have used the debugger to step into the code and delve deep into the abyss but it becomes quite scary at some point when dealing with I got to platform_channel.dart.. Any advice or ideas for troubleshooting will be appreciated. |
I found a solution to this issue: Its the fact that MacOs only allows access to certain folders when developing and the sandbox is used. I was writing the file to /tmp/out.m4a but it seems you can only write to specific folders https://developer.apple.com/documentation/security/accessing-files-from-the-macos-app-sandbox You can disable the sandbox as per Best practice would be to only write to folders your app has access to but for dev purposes disabling the sandbox should be find as long as you remember to fix your app before releasing it into the wild. |
Package version
record: ^5.2.0 (tried with 5.1.2 - same problem)
Environment
Describe the bug
cannot stop recording,
final path = await RecordPlatform.instance.stop(_recorderId);
No response returned and always waiting
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: