Post

Replies

Boosts

Views

Activity

Reply to ReplayKit error: Code=-5833 "Failed to start due to audio/video capture failure"
In my case, I was using the FileManager's URL for saving the recording. I was using the below-mentioned code for creating the URL: let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) let fileUrl = paths[0].appendingPathComponent("screenRecording-\(UUID().uuidString).mp4") I have changed the way of creating URL. Instead of using FileManager I used NSTemporaryDirectory() as mentioned below: let fileURL: URL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("screenRecording-\(UUID().uuidString).mp4") This resolved my issue.
Feb ’23