HTML5视频在IE和Edge中变黑 [英] HTML5 video turns black in IE and Edge
问题描述
在我的视频渲染过程中,独立构图似乎不起作用.我的广告也坏了.它们保持黑色并给出错误:
Independent composition doesn't seem to work for the rendering process of my video. My ads are broken too. They remain black and give an error:
为视频渲染禁用了独立合成.这个可以 对性能产生负面影响
Independent composition is disabled for video rendering. This can negatively impact performance
我正在使用GoogleIMA SDK.
I'm using the GoogleIMA SDK.
来自 MSDN :
HTML5视频标记是明确针对的元素 独立组成.独立渲染和编写HTML5 视频可提供快速流畅的媒体播放体验.
The HTML5 video tag is an element that is explicitly targeted for independent composition. Independently rendering and composing HTML5 video enables a fast and smooth media playback experience.
我不知道为什么这不起作用,这是一个错误吗?
I don't know why this doesn't work, is this a bug?
推荐答案
我不确定这是一个错误还是有意这样做(不确定,因为从独立渲染中删除视频是很奇怪的).
但是我确实知道如何解决这个问题.解决该问题的方法是在<video>
元素上查找CSS动画/变换.这些通常是怀疑<video>
元素被踢出独立渲染的原因.
I'm not sure if it's a bug or intentionally done this way (Not sure since it's pretty weird that video gets dropped from independent rendering).
But i do know how to fix this. The way to fix it is to look for CSS animations/transforms on the <video>
element. These are usually suspect of a <video>
element being kicked out of independent rendering.
希望这会有所帮助!
这篇关于HTML5视频在IE和Edge中变黑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!