当MediaDrM.opensession()

发布于 2025-01-18 10:46:15 字数 442 浏览 3 评论 0原文

我正在尝试在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谜兔 2025-01-25 10:46:15

该错误告诉您,您要求创建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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文