如何禁用video-js的孩子

时间:2019-06-19 15:25:34

标签: javascript html video.js

我想使用videoJS禁用我的视频元素中所有自动生成的span和div。有什么想法吗?

这是我的代码

<ItemTemplate>
    <asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible='<%# Eval("VideoURL").ToString() != "" %>'>
        <li>
            <video data-cycle-cmd="pause" id='my-video' class='video-js' controls preload='auto' width='980' height='452' poster='MY_VIDEO_POSTER.jpg' data-setup='{}'>
                <source src='<%# Eval("VideoURL") %>' type='video/mp4'>
            </video>
        </li>
    </asp:PlaceHolder>
</ItemTemplate>

然后,当我加载页面时,将其显示在视频标签下

<div class="vjs-poster" tabindex="-1" aria-disabled="false" style="background-image: url(&quot;MY_VIDEO_POSTER.jpg&quot;);"></div>
<li class="vjs-menu-title cycle-slide" tabindex="-1" style="position: absolute; top: 0px; left: 0px; z-index: 100; visibility: hidden; opacity: 0; display: block;">Chapters</li>
<span class="vjs-menu-item-text">descriptions off</span>
<span class="vjs-control-text" aria-live="polite">, selected</span>

我以幻灯片形式显示视频,并且会自动生成空白图像:

enter image description here

enter image description here

我的原始视频:

enter image description here

0 个答案:

没有答案