zoukankan      html  css  js  c++  java
  • ckplayer获取播放时长一

    <div id="a1"></div>
    <div id="nowTime"></div>
    <script type="text/javascript" src="/ckplayer/6.6/ckplayer.js"></script>
    <script type="text/javascript">
      function loadedHandler(){
        if(CKobject.getObjectById('ckplayer_a1').getType()){
          CKobject.getObjectById('ckplayer_a1').addListener('time',timeHandler);
        }
        else{
          CKobject.getObjectById('ckplayer_a1').addListener('time','timeHandler');
        }
      }
      function timeHandler(t){
        if(t>-1){
            CKobject._K_('nowTime').innerHTML='当前播放的时间点是(此值精确到小数点后三位,即毫秒):'+t;
        }
      }
      var flashvars={
        f:'http://img.ksbbs.com/asset/Mon_1703/05cacb4e02f9d9e.mp4',
        c:0,
        p:2,
        b:0,
        i:'/static/images/letitgo.jpg',
        loaded:'loadedHandler',
        my_url:encodeURIComponent(window.location.href)
      };
      var video=['http://movie.ks.js.cn/flv/other/1_0.mp4->video/mp4'];
      CKobject.embed('/ckplayer/6.6/ckplayer.swf','a1','ckplayer_a1','100%','100%',false,flashvars,video);
    </script>
  • 相关阅读:
    k8s
    vue-element-admin实现模板打印
    MAC系统命令
    思维导图工具
    前端如何渲染几万条数据不卡住页面?
    Echar使用案例
    .Net 相关报错解决方案
    Windows 操作技巧
    Docker&K8s
    微信网页授权原理分析
  • 原文地址:https://www.cnblogs.com/hofmann/p/11802071.html
Copyright © 2011-2022 走看看