2013-07-26 24 views
0

我喜歡在嵌入式視頻上放置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> 

的問題是:我需要一個元素,沒有背景,或者與透明背景,或者與背景/ DIV透明度 - 這是行不通的......

爲什麼?!

請幫助=)

回答

1

有一個解決方案:

使用windowless="true"中嵌入參數。

窗戶:(因爲VLC 2.0.6版)畫上一個沒有窗戶的 (非加速)表面的視頻,並允許樣式(CSS疊加,3D 轉換,等等)。默認值:false

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

+0

非常感謝你。 –