MediaProjection API on protected (DRM) content

假如想象 提交于 2019-12-11 06:49:26

问题


I'm trying to find informations about the compatibility with DRM protected content and the MediaProjection API.

Specifically, I would like to know if I can record the video from Netflix or other apps that implement DRM protection?


回答1:


Simple answer is no, not too surprisingly.

From the google docs ( with my bolding):

Screen capturing and sharing Android 5.0 lets you add screen capturing and screen sharing capabilities to your app with the new android.media.projection APIs. This functionality is useful, for example, if you want to enable screen sharing in a video conferencing app.

The new createVirtualDisplay() method allows your app to capture the contents of the main screen (the default display) into a Surface object, which your app can then send across the network. The API only allows capturing non-secure screen content, and not system audio. To begin screen capturing, your app must first request the user’s permission by launching a screen capture dialog using an Intent obtained through the createScreenCaptureIntent() method.

Here is the link: https://developer.android.com/about/versions/android-5.0.html#ScreenCapture

By 'secure' in this context they mean DRM protected.



来源:https://stackoverflow.com/questions/42158782/mediaprojection-api-on-protected-drm-content

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