zoukankan      html  css  js  c++  java
  • 前端视频转码flv->swf

    在项目中本来是要用<video>标签插入视频,但此标签不支持flv格式,上网也是搜了很多,试了很久才成功(其他格式不是很清楚你们可以尝试看看)

    所用技术 flach (Flvplayer.swf),ckplayer.js,jq

    //链接:http://www.zgtyjs.org/education/v/video.jsp

    <html>
    <div class="left">
                    <object class="obj"
                        codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                        width="80%" height="650px"
                        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                        <param name="quality" value="high">
                        <param name="allowFullScreen" value="true">
                        <param name="movie" value="/education_online/education/v/swf/Flvplayer.swf">
                        <param class="vo1" name="FlashVars" value="vcastr_file=http://video.moe.gov.cn/tiweiyisi/xiaoyuanzuqiu/xyzqttzq_001.flv&IsContinue=1">
                        <embed class="vo2" id="vo2" src="/education_online/education/v/swf/Flvplayer.swf"
                            flashvars="vcastr_file=http://video.moe.gov.cn/tiweiyisi/xiaoyuanzuqiu/xyzqttzq_001.flv&IsContinue=1"
                            width="100%" height="650px"
                            pluginspage="http://www.macromedia.com/go/getflashplayer"
                            quality="high" allowfullscreen="true"
                            type="application/x-shockwave-flash">
                        </embed>
                    </object>
                </div>
    </div>
    <html>
    <script>
    /*

    相关部分代码,append里的代码不可少写,这是为了每次点击视频选集时重新加载

    */
      

    $(".left .obj").append('<param name="quality" value="high">'+
    '<param name="allowFullScreen" value="true"><param name="movie" value="/education_online/education/v/swf/Flvplayer.swf">'+
    '<param class="vo1" name="FlashVars" value="vcastr_file='+dataList[ooid].url+'&IsContinue=1">'+
    '<embed class="vo2" id="vo2" src="/education_online/education/v/swf/Flvplayer.swf" flashvars="vcastr_file='+dataList[ooid].url+'&IsContinue=1" width="100%" height="650px" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowfullscreen="true" type="application/x-shockwave-flash"></embed>')
    })



    </script> 
  • 相关阅读:
    Java.Util.List(List接口)
    在VMware安装Centos7
    java中原生的发送http请求(无任何的jar包导入)
    二叉树算法的收集
    javascript将list转换成树状结构
    CSS实现鼠标悬浮无限向下级展示的简单代码
    Jquery的框架解析
    mybaits插入时的一些总结
    苹果手机在有滚动条的情况下,滑动不顺畅的原因
    tomcat下jndi的三种配置方式
  • 原文地址:https://www.cnblogs.com/zhaozhenghao/p/10081244.html
Copyright © 2011-2022 走看看