I want to block screen recording or video output per my app using QuickTime Player.
I had detected hdmi output and airplay with UIScreen
.
But QuickTime Player video recording was no detect.
How to detect QuickTime Player?
Thanks.
I want to block screen recording or video output per my app using QuickTime Player.
I had detected hdmi output and airplay with UIScreen
.
But QuickTime Player video recording was no detect.
How to detect QuickTime Player?
Thanks.
Thus don't know detect QuickTime Player recording.
But I Found a solution with some trick.
If QuickTime Player recording is running, AVAudioSession's output portType has been changed to HDMIOutput.
So I coding as follows...(Swift 2.2)
Insert that function in ViewDidLoad and added
AVAudioSessionRouteChangeNotification
notification.Thanks.
With iOS 11 you can use the notification
on
AppDelegate.swift
use selector