iOS 11 Prevent Screen Record like Netflix

后端 未结 4 1424
失恋的感觉
失恋的感觉 2021-02-09 02:26

I have video playing in my application which I don\'t want to be recorded. What Netflix application do is that they let the audio capture but not the video whi

4条回答
  •  终归单人心
    2021-02-09 03:01

    I believe, Netflix takes advantage of the "FairPlay Streaming" technology provided by Apple. According to Apple Documentation

    If your application uses FairPlay Streaming (FPS) your video content will automatically not be captured by the iOS 11 screen recording feature or QuickTime Player on macOS. The portion of your application that is playing the content will be blacked out.

    Note: FairPlay Streaming will only provide protection for the video portion of your content. To prevent capture of the audio portion you should still use the UIScreen APIs discussed in this document to provide an appropriate message to the user if screen capture begins.

    One can get an in-depth understanding of FPS from the link below :

    https://developer.apple.com/streaming/fps/

    Any application can incorporate FPS in order to achieve same results as Netflix.

提交回复
热议问题