嵌入视频上的透明元素(如div容器)



我喜欢在嵌入式视频上放置一个div容器。类似这样的东西:

<style>
#container_above_video {
position: absolute;
top: 0px;
left: 0px;
background-color: red; /*that works*/
/*background-color: rgba(255,0,0,0.5); that doesn't work*/
z-index: 99; /*has an effect at all?*/
</style>
  <div id="eineID" style="top: 0px; left: 91.8889px; width: 1182.22px; height: 665px;">
<embed id="vlcplugin" target="http://localhost:8097/mainmedia.ts?wmode=transparent" version="VideoLAN.VLCPlugin.2" pluginspage="http://www.videolan.org" wmode="transparent" type="application/x-vlc-plugin" style="top: 0px; left: 91.8889px; width: 1182.22px; height: 665px;"></embed></div>
<div id="container_above_video">Some Content</div>

问题是:我需要一个元素,没有背景,或者有透明背景,或者在background/div上有不透明度-它不起作用。。。

为什么?!

请帮助=)

有一个解决方案:

在嵌入参数中使用CCD_ 1。

无窗口:(自VLC 2.0.6版本以来)在无窗口上绘制视频(非加速)表面并允许样式(CSS覆盖,3D转换等等)。默认值:错误

更多信息:https://wiki.videolan.org/Documentation:WebPlugin/

最新更新