!!!!!一个非常简单的问题, web 页面 无法选中正在播放的vlc控件
问题描述:vlc播放多路视频,,页面有多个web vlc控件(ocx),存放在各个tablecell 中,当多个Vlc在播放视频的时候,如果选中 某个vlc控件切换其他路视频, 无法选中在播的vlc控件,应该是vlc控件把div遮挡了.失去了焦点,求救有没有好的方法,或者只要能选中某个vlc,
在web中.界面目前是 不能更改.
部分代码:
<div style=" float: left">
<asp:table border="0" CellPadding="0" CellSpacing="0" BorderColor="WindowFrame" ID="table1" runat="server" onclick="javascript:DoClick(event);">
<asp:TableRow>
<asp:TableCell height="280" width="430" BorderStyle="Outset" border="5" >
<object id="vlc1" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" events="True" height="275" width="420" style="display:none;" >
<param name="ShowDisplay" value="true" />
<param name="AutoLoop" value="true" />
<param name="AutoPlay" value="true" />
<param name="Time" value="true" />
<embed pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" width="420" height="275" />
</object>
</asp:TableCell>
<asp:TableCell height="280" width="430" ID="Div2" BorderStyle="Outset" border="5" > <object id="vlc2" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" events="True" width="420" height="275" style="display:none;" >
<param name="ShowDisplay" value="true" />
<param name="AutoLoop" value="true" />
<param name="AutoPlay" value="true" />
<param name="Time" value="True" />
<embed pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" width="420" height="275" />
</object></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell height="280" width="430" ID="Div3" BorderStyle="Outset" border="5"><object id="vlc3" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" events="True" height="275" width="420" style="display:none;" >
<param name="ShowDisplay" value="true" />
<param name="AutoLoop" value="true" />
<param name="AutoPlay" value="true" />
<param name="Time" value="True" />
<embed pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" width="420" height="275" />
</object></asp:TableCell>
<asp:TableCell height="280" width="430" ID="Div4" BorderStyle="Outset" border="5"> <object id="vlc4" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" events="True" height="275" width="420" style="display:none;" >
<param name="ShowDisplay" value="true" />
<param name="AutoLoop" value="true" />
<param name="AutoPlay" value="true" />
<param name="Time" value="True" />
<embed pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" width="420" height="275" />
</object></asp:TableCell>
</asp:TableRow>
</asp:table>
</div>
function initPlayUrl(obj,data) {
var vedio_url;
if (obj) {
if (obj == "Div1") {
vlc = document.getElementById("vlc1");
}
else if (obj == "Div2") {
vlc = document.getElementById("vlc2");
}
else if (obj == "Div3") {
vlc = document.getElementById("vlc3");
}
else if (obj == "Div4") {
vlc = document.getElementById("vlc4");
}
else {
vlc = document.getElementById(obj);
}
}
else {
return;
}
var itemId = vlc.playlist.add(vedio_url);
vlc.playlist.playItem(itemId);
vlc.playlist.play();
}