How to prevent iOS11 Built in screen recording feature just like Amazon Prime for protected DRM content?

别说谁变了你拦得住时间么 提交于 2019-12-22 17:05:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!