问题
WideVine iOS CDM Player is playing DRM Protected content. Now, iOS11 introduce a new built-in feature i.e Screen Recording. Using this feature a user can easily capture or record DRM Protected content.
I used iOS11 Beta isCaptured and UIScreenCapturedDidChange Property and try to prevent DRM protected content to recorded, But This isCaptured and UIScreenCapturedDidChange working fine when the first time I Launch my Application. Now, when I Kill my running App(Terminate the application) and Launch again then my App doesn't receive any value for isCaptured and UIScreenCapturedDidChange.
Now I try to record Netflix and Amazon Prime content using iOS11 screen recording feature but it will don't allow to record and gives a Black screen.
I want similar Black screen when screen recording is On in iOS11 device, But I don't have the solution. If anyone has then please help.
回答1:
Netflix and Amazon prime iOS apps are using Apple DRM solution for apple devices - FairPlay (https://developer.apple.com/streaming/fps/). When AVPlayer plays FairPlay encrypted content it can't be captured by Screen Recording in iOS11.
回答2:
You can use UIScreen.main.isCaptured
to tell if the screen is being recording by screen recording or AirPlay etc...then show your black view to cover your screen
来源:https://stackoverflow.com/questions/46357126/how-to-prevent-ios11-built-in-screen-recording-feature-just-like-amazon-prime-fo