#Video and Audio out of sync

3 messages · Page 1 of 1 (latest)

trail vortex
#

We have an iOS app with multiple lenses available. In the app, while the user is using the lenses it's possible to record what the user is seeing on the lens.

We use the Recorder provided on the SDK.

Starting iOS 18.2 our users started to get a lot of recordings with the video and audio out of sync. 😩

We are using the SCSDKCameraKit 1.29.0. Based on the release notes, nothing importing changed around this. The Recorder code is also still the same.

Is anyone facing this issue? Do you have any suggestion of how can we fix this?

Thanks

queen prawn
#

Hi @trail vortex,

Thanks for your message. Is it a specific lens, or does this happen with all of them? Can you reproduce the issue with a lens from the Demo group? From my side, I can't seem to reproduce this issue on iOS 18.3 and Camera Kit v1.38. Therefore, I suggest updating to the most recent version of the SDK. If the issue persists, we can explore other solutions.

trail vortex
#

Hi @queen prawn ,

Thank you for replying. Indeed, in the Sample everything was good, even while using our own lens. We started upgrading to 1.38 (without all the logic the app contains) and everything was good.

The problem was not related with the version or CameraKit.

We had a Video Player, and this video player was not getting the AVAudioSession back, while we were previewing the recording. To fix it some time ago, we were setting the AVAudioSession category.

We had to double check places where we were asking to it
try? AVAudioSession.sharedInstance().setCategory(.playAndRecord, options: [.defaultToSpeaker])

After removing it, everything started working fine again.