Open nazdream opened 2 years ago
Did you try dispatching record() call to background queue? I'm having same issue with freeze, that's first thing I wanna try.
Try to call record with viewDidLoad. It's work for me. Issue looks like specific initialisation when first time starting record.
let recThread = Thread() { self.recorder?.record() sleep(1) self.recorder?.stop() } recThread.name = "rec" recThread.start()
I am trying to record
ARSKView
withRecordAR
. The problem I am facing is that every time I callRecordAR.record()
the app freezes for a moment. Also, text-to-speech pronunciation is very laggy if I call it right after therecord
function.Is there any way to avoid this issue? I couldn't find any possible way to prevent this issue in docs and in the internet. Any feedback is highly appreciated, thank you!
I have the same problem did you find something ? @nazdream
self.showLoading() DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1), execute: { self.startTimer(recoder: record) DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3), execute: { print("done") self.resetCoudown() self.showView() isFirstApp = false }) })
I also had the same problem and solved it by adding the above code after I initialized RecordAR @nazdream
I am trying to record
ARSKView
withRecordAR
. The problem I am facing is that every time I callRecordAR.record()
the app freezes for a moment. Also, text-to-speech pronunciation is very laggy if I call it right after therecord
function.Is there any way to avoid this issue? I couldn't find any possible way to prevent this issue in docs and in the internet. Any feedback is highly appreciated, thank you!