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

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

注册 | 登录

解决encryption - Decrypting widevine DRM protected video in android using MediaDrm

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 trying to decrypt widevine DRm protected media file using Android's MediaDrm API. But MediaDrm is instantiated using UUId( of DRM-scheme). Android developer site says

"App accesses the DRM-scheme-identifying UUID, typically from metadata in the content, and uses this UUID to construct an instance of a MediaDrm object that is able to support the DRM scheme required by the content". (www.developer.android.com/reference/android/media/MediaDrm.html).

So I tried to get UUID using MediaExtractor.getpsshInfo() but it returned a null object. Then I tried DrmManagerClient.getMetadata(uri of media content) but again this method also returned null.

I tried this on the follwing widevine demo uri:

content URL: http://commondatastorage.googleapis.com/wvmedia/starz_main_720p_6br_tp.wvm
Licence server: https://license.uat.widevine.com/getlicense/widevine

although after aquiring rights using DrmManagerClient API I am able to play the video in Android's native MediaPLayer( VideoView) but I want to decrypt the media file using Android's MediaDrm API and want to get unencrypted data ,which I am not able to do because I am not getting proper UUID value. Can someone point me in the right direction to achieve this.

Or Can some one help me in accessing a DRM scheme - UUID value?

Thanks

android encryption drm mediaextractor widevine
|
  this question
edited Jul 1 '14 at 12:40 asked Jul 1 '14 at 12:27 user1581813 3 1 4      I tried to integrate google widevine in android but failed. I didn't find any help or sample code for how to integrate it. Could you please guide me how to achieve that? Which information or id or access do I have to need to integrate it? I want to test widevine with your content URL. Please help. –  Md Sufi Khan Aug 28 '14 at 7:26

 | 

1 Answers
1

解决方法

mediaDRM is designed for EME Common Encryption playback. See https://developer.android.com/reference/android/media/MediaDrm.html

The Widevine content you have listed is not in the Common Encryption format and therefore, is incompatible.


|
  this answer
answered Jul 2 '14 at 0:37 user1581814 26 1

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

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

您的注册邮箱: 修改

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

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

澳门银河网上官方赌场