Posts

Post marked as solved
5 Replies
2k Views
Hi,I am trying to record the screen and microfone inside my application using ReplayKit. It records everything without problems and at the end I present the preview through this code:recorder.stopRecording { [weak self] (preview, error) in guard preview != nil else { print("Preview not available") return } preview?.previewControllerDelegate = self self?.present(preview!, animated: true, completion: nil) }The problem is here, the RPPreviewViewController obtained in the callback does not respect the safe area for iPhone X. The buttons are too close to the edges and the title is hidden below the notch.I also tryed to embed the RPPreviewViewController into another UIViewController (a simple wrapper), but it seems like the height is fixed, so if I lower the top part the bottom one goes out of the screen.Any clue of what I am doing wrong? Any help is appreciated.Thanks!
Posted
by michele.m.
Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
Hi, when I start a screen recording session (with microphone enabled) the phone automatically switch every audio playback from the default speaker to the call speaker (the one in the top, used during phone calls) and it returns normal when I stop the recording.The same result happens from my app using ReplayKit and from iOS 11 system screen recording, it behave the same, every sound (from game, spotify, whatever...) comes only from the top speaker, resulting in a very low volume.I tryed with iPhone 6s, 7 and X with iOS 11.2.2 and iOS 11.2.5, nothing change.I don't understand if this is a bug or a feature, and most of all if I can override this setting in my app, allowing the user to record his voice from microphone with music in the background.Many thanks,Michele
Posted
by michele.m.
Last updated
.