如何在android webview中播放widevine drm内容 [英] How to play widevine drm content in android webview

查看:66
本文介绍了如何在android webview中播放widevine drm内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 html5 代码在 webview android 中播放 widevine drm 内容.我尝试了很多都没有成功,webview 不支持 widevine 吗?请给出一种在 webview android 中播放 widevine 的方法,如果 widevinewidevine 中不支持,请告诉我为什么?

I want to play widevine drm content in webview android using html5 code. I tried a lot not succeeded, does widevine not supported in webview? please give a way to play widevine in webview android and let me know if widevine does not support in widevine and why?

任何帮助和建议将不胜感激.

Any help and suggestion would be appreciated.

推荐答案

遗憾的是,Android 设备随附的 webview 因设备和 Android 版本而异.

Unfortunately, the webview shipped with Android devices differs between devices and between Android versions.

这里有一个很好的概述:

There is an excellent overview here:

您可以通过在 web 视图中使用像 Shaka 这样的开源 HTML5 播放器并尝试其中的一些演示内容来测试您的设备是否支持它.

You can test whether your device supports it by using an open source HTML5 player like Shaka in your webview and trying some of their demo content.

Shakaplayer 包含一个基本教程,展示了如何在网页中包含播放器:

Shakaplayer includes a basic tutorial showing how to include the player in a webpage:

您还可以使用 HTML5test Webview 应用程序等测试应用程序 - 检查流媒体部分以确保 MSE 和 DRM 均已勾选:

You can also use a test app like the HTML5test Webview app - checking the streaming section to make sure MSE and DRM are both ticked:

这篇关于如何在android webview中播放widevine drm内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆