As I know that starting from 4.X Android have built-in support for Widevine DRM. I'm making an application that streams a video content from Widevine protected server. However I can't find any documentation on how work with it. For example I have response from server that contains following:
"uri": "http://*******.com/prog_index.m3u8",
"type": "widevine",
"parameters": {
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"media_type": "stream",
"media_id": "3580",
"time": "1350642931"
}
What steps should I perform to play it in MediaPlayer?
Maybe someone can provide more information on how to use android.drm package?
You should start with the Android DRM Framework. This page describes the android.drm framework which supports Widevine along with other DRM engines (like OMA).
Here is the sequence of calls (from the above page) to acquire the rights:
Then just play the content via MediaPlayer. It should be able to pickup the license information.