当MediaDrM.opensession()
我正在尝试在Exoplayer中制作DRM视频播放,并且
val mediaDrm = MediaDrm(C.WIDEVINE_UUID)
val sessionId = mediaDrm.openSession()
在运行这条代码行时,我有自定义许可证请求,这不是ProvisionEdexception,
我试图通过此行生成密钥
mediaDrm.getKeyRequest(sessionId,listOf(schemeData),mimType)
,以使Session IM在下面写下session IM
val mediaDrm = MediaDrm(C.WIDEVINE_UUID)
val sessionId = mediaDrm.openSession()
I am trying to make drm video play in exoplayer and i have custom licence request
val mediaDrm = MediaDrm(C.WIDEVINE_UUID)
val sessionId = mediaDrm.openSession()
when I run this line of code I am getting that is NotProvisionedException
I am trying to generate key by this line
mediaDrm.getKeyRequest(sessionId,listOf(schemeData),mimType)
in order to get sessionId i m writing below code
val mediaDrm = MediaDrm(C.WIDEVINE_UUID)
val sessionId = mediaDrm.openSession()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误告诉您,您要求创建MediaDRM对象的DRM系统未在设备上提供。
最常见的原因是,要么是传递给MediaDRM的不正确的UUID,要么是实际支持DRM系统的设备,在您的情况下是Widevine。
您可以检查设备是否已配备了宽葡萄,并老挝使用drmmanagerclient.Acquiredrminfo()方法:
请注意,如果您在模仿器上进行测试,则DRM在DRM上进行测试,通常将医生不正常。
That error is telling you that the DRM system you are asking to create a MediaDRM object for is not provisioned on your device.
The most common cause of this is either an incorrect UUID being passed to MediaDRM or the device not actually supporting the DRM system, WideVine in your case.
You can check if your device has widvine provisioned and Laos the level of wide vine supported using the DrmManagerClient.acquireDrmInfo() method:
Note that if you are testing on an emulator DRM will usual not work correctly.