HTML5将加密视频框架绘制为画布(使用ClearKey加密媒体扩展)
我正在尝试使用JavaScript从HTML5视频元素绘制帧,从而将视频(WebM VP9)与ClearKey进行加密。我正在使用EME将其解密在Chrome中。看来Chrome> = 55在使用EME时不允许canvascontext2d.DrawImage(加密的介质扩展)。视频本身的播放很好,但是我无法抓住任何框架。
有人知道这个问题的解决方法吗?
I am trying to draw frames from a HTML5 video element to a canvas using Javascript in which the video (webm VP9) has been encrypted with clearkey. I am using EME to decrypt it in Chrome. It appears that Chrome >= 55 does not allow CanvasContext2D.drawImage when using EME (Encrypted Media Extensions). The video itself is playing nicely, but I am not able to grab any frames.
Does anyone know a workaround for this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,没有解决方法。如果有一种方法可以从加密帧中读取原始像素数据,则它将使DRM毫无意义。因此,要做自己想做的事情是特别禁止的。
No, there is no workaround. If there was a way to read raw pixel data from an encrypted frame, it would make DRM pointless. Hence doing what you want is specifically disallowed.