Samples/tutorial for DRM framework in Android

2019-02-08 03:21发布

问题:

Android 4.0 brings drm framework to smartphones. I'm interested to write a code that plays video protected by the DRM, but can't find enough information.

  1. Are there any tutorials on using the DRM framework? Sample code?
  2. How to set up an environment - the server side that creates the content and licenses?
  3. Are there any DRM protected videos in the Internet that I can use for testing?
  4. The plugin framework claims extensibility, but I can't find neither plugin AI definitions, nor description how to create/add a custom plugin

回答1:

EDIT: An example pass-through DRM plugin is now available in AOSP under frameworks/base/drm/libdrmframework/plugins/passthru/


Are there any tutorials on using the DRM framework? Sample code?

Not yet, unfortunately. The only public documentation on this is at the android.drm package summary docs.

How to set up an environment - the server side that creates the content and licenses?

This is specific to the DRM provider.

Are there any DRM protected videos in the Internet that I can use for testing?

This too is specific to the DRM provider.

The plugin framework claims extensibility, but I can't find neither plugin AI definitions, nor description how to create/add a custom plugin

I think this will become more clear once the source code is released, but for now there isn't any further info on this unfortunately.



回答2:

A good explanation on concepts of DRM and DRM on android is available here: http://developer.samsung.com/android/technical-docs/DRM-in-Android