相关疑难解决方法(0)

HTML5视频搜索

如何让我的视频播放器跳过/寻找到某个时间.我已经开始使用它,它可以在页面首次加载(在Chrome中)但在任何其他浏览器中都无效.我也有一个闪回落,这可能是一个痛苦,但目前优先考虑的事情的HTML方面主要问题是它在Chrome之外不起作用!

编辑:这现在适用于IE9,Chrome和Firefox.但是,不是闪存后备!

以下是我到目前为止的尝试.

到目前为止我正在使用以下JS:

   <script language="javascript">
     $(function () {
     var v = $("#video").get(0);
         $('#play').click(function(){
                v.play();
         });

        $('.s').click(function(){
            alert("Clicked: "+$(this).html() +"- has time of -" + $(this).attr('s') );
            v.currentTime = $(this).attr('s'); v.play();
        });
     });
    </script>
Run Code Online (Sandbox Code Playgroud)

哪个链接到以下内容:

<video id="video" controls width="500">  
        <!-- if Firefox -->  
        <source src="video.ogg" type="video/ogg" />  
        <!-- if Safari/Chrome-->  
        <source src="video.mp4" type="video/mp4" />  
        <!-- If the browser doesn't understand the <video> element, then reference a Flash file. You could also write something like "Use a Better Browser!" if you're …
Run Code Online (Sandbox Code Playgroud)

javascript jquery html5 html5-video

14
推荐指数
1
解决办法
3万
查看次数

标签 统计

html5 ×1

html5-video ×1

javascript ×1

jquery ×1