即使离开应用程序后,音频响起 - 记录音频
我正在构建一个应用程序,用户可以在其中开始记录会话的音频,并且录制应该继续直到他单击停止按钮,即使将应用程序放在介于两者之间。 Google搜索为我提供了诸如Flutter_sound之类的插件,但是即使允许录制音频,也不会明确提及。那么,是否有可以帮助我实现同样的软件包?如果没有,还有其他方法可以做吗?
I am building an app where an user can start recording the audio of a session and the recording should continue till he clicks the stop button, even if leaves the app in between. A google search gave me plugins like flutter_sound but it isn't explicitly mentioned if it would allow recording the audio even if one leaves the app. So is there any package which can help me achieve the same? if not is there any other way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管在退出应用程序时,将录音机保留在录音机上并不是一个好习惯,但为了给您一个答案,您可以尝试 Workmanager
并且要取消它可以添加延迟并致电
Though its not a good practice to keep the recorder on when the app is exited, just to give you an answer, you can try workmanager
And to cancel it you can add a delay and call