Play DRM protected video in android native player
2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1062
2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址:https://www.aliyun.com/minisite/goods
I am developing a application based on drm player i am able to get drm info but i don't know how to integrate drm to android native player for this i am using
mVideoView= (VideoView) findViewById(R.id.Trailer_VV);
String android_id = Secure.getString(getContentResolver(),Secure.ANDROID_ID);
url = "https://s3-us-west-2.amazonaws.com/amgo/SECOND.wvm";
System.out.println("Print android_id " + android_id);
DrmInfoRequest request = new DrmInfoRequest(DrmInfoRequest. TYPE_REGISTRATION_INFO, "video/wvm");
request.put("WVDRMServerKey", "http://widevine.ezdrm.com/widevine/cypherpc/cgi-bin/GetEMMs-ezdrm.cgi");
request.put("WVAssetURIKey", "https://s3-us-west-2.amazonaws.com/amgo/SECOND.wvm");
request.put("WVDeviceIDKey", "movidone");
request.put("WVPortalKey", "movidone");
request.put("WVCAUserDataKey", "ezE7B1D1");
client = new DrmManagerClient(VideoViewActivity.this);
client.acquireRights(request);
DrmInfo response = client.acquireDrmInfo(request);
if (response != null) {
System.out.println("DrmInfo " + response.getMimeType().toString());
//System.out.println("DrmInfo " + response.getData());
String drmInfoReqStatusKey = (String)response.get("WVDrmInfoRequestStatusKey");
if (null != drmInfoReqStatusKey && !drmInfoReqStatusKey.equals("")) {
long mWVDrmInfoReqStatusKey = Long.parseLong(drmInfoReqStatusKey);
System.out.println("mWVDrmInfoReqStatusKey: "+mWVDrmInfoReqStatusKey);
}
String mPluginVersion = (String)response.get("WVDrmInfoRequestVersionKey");
System.out.println("mPluginVersion: "+mPluginVersion);
} else {
System.out.println("no result");
}
mVideoView.setVideoURI(Uri.parse(url));
mVideoView.start();
android
drm
|
this question asked Sep 17 '14 at 5:17 Kamalkant Gaur 44 7 I'm with the same problem, have you discovered something? – Bernas Feb 5 '15 at 12:34 Yes i have solved this problem by connecting EZDRM team – Kamalkant Gaur May 19 '15 at 11:44 I already got the answer too, tks – Bernas May 20 '15 at 9:28 Please explain me , how u have solved the problem – Prabhu M Aug 18 '15 at 5:30 Hey guys, so how to solve problem? – Ernest Sep 18 '15 at 9:03
|
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
相关阅读排行
- 1Android 使WebView支持HTML5 Video(全屏)播放的方法
- 2html5 Video控件视频播放,电脑和手机上都能兼容。(mp4格式 电脑和android、ios都能播放)
- 3android webkit HTML5 video研究
- 4Android HTML5 Video视频标签自动播放与自动全屏问题解决
- 5android webview自动播放Video