I have been trying to create a 10-second recording that is started using the function StartRecording which is called inside a useEffect function, I am using expo audio by the way. The function works fine when the dev build is in the foreground but when it goes into the background the StartRecording function does not run it only runs after I bring the app back into the foreground. can anyone help me with this, please?
我一直在尝试创建一个10秒的录音,该录音是使用在useEffect函数内部调用的StartRecording函数开始的,顺便说一句,我正在使用EXPO音频。当dev版本在前台时,该函数工作得很好,但当它进入后台时,StartRecord函数不会运行,它只在我将应用程序带回前台后运行。有人能帮我这个忙吗?
i have tried bundling it together with background location from expo but it didn't work i only got the location data and the recording still didn't start.
我试着把它和世博会的背景位置捆绑在一起,但没有奏效,我只得到了位置数据,记录仍然没有开始。
更多回答
Apps can't start recording when they are in the background. It would be a privacy issue
应用程序在后台时无法开始录制。这将是一个隐私问题
优秀答案推荐
我是一名优秀的程序员,十分优秀!