gpt4 book ai didi

How do you start an audio recording when a react native app is in background state on IOS?(当iOS上的Reaction原生应用程序处于后台状态时,如何开始录音?)

转载 作者:bug小助手 更新时间:2023-10-25 15:25:41 24 4
gpt4 key购买 nike



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

应用程序在后台时无法开始录制。这将是一个隐私问题

优秀答案推荐
更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com