IOS 11 On-screen recording disabled VIDEO RECORDING

iOS 11 has a new feature that allows users to record their screen, I want to disable only VIDEO recording when I play video in my application, while keeping the screen recording on.

For instance. I record my screen and open the application to start using it, but as soon as AVPlayer starts playing the video, it must pause the recording on the screen so that the video in my application is not captured in the recording mode, while the sound can be recorded in the on-screen recording .

Thank!

+4
source share
1 answer

. , , .

, , UIScreenCapturedDidChange.

NotificationCenter.default.addObserver(self, selector: #selector(screenCaptureChanged), name: NSNotification.Name.UIScreenCapturedDidChange, object: nil)

isScreenCaptured UIScreen, , .

UIScreen.main.isCaptured

, , , .

+5

Source: https://habr.com/ru/post/1686096/


All Articles