iOS 11 Prevent Screen Record like Netflix

后端 未结 4 1029
旧巷少年郎
旧巷少年郎 2021-02-09 02:30

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:05

    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.

提交回复
热议问题