澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

Play DRM protected video in android native player

itPublisher 分享于

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.


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场