• aliplay获取播放时长


                <div id="player-con" class="frequency-pic"></div>
                <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css" />
                <script charset="utf-8" src="https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js"></script>
                <script>
                    var aliplayer = new Aliplayer({
                        "id": "player-con",
                        "source": '<% =videoUrl %>',
                        "width": "640px",
                        "height": "480px",
                        "autoplay": true,
                        "isLive": false,
                        "cover": '@(Course.Cover==null? "http://image.bnuxq.net/20190525/guo-pic.jpg":Course.CoverPath_pre+""+Course.Cover)',
                        "rePlay": true,
                        "playsinline": true,
                        "preload": true,
                        "language": "zh-cn",
                        "controlBarVisibility": "hover",
                        "useH5Prism": true
                    }, function (player) {
                        console.log("播放器创建了。");
                    }
                    );
    
                    aliplayer.autoplay = true;
                    
                        var whereYouAt = parseFloat(aliplayer.getCurrentTime()) + 1;
                        var totalTime = parseFloat(aliplayer.getDuration());
  • 相关阅读:
    VINS_Fusion 框架
    VINS_Fusion 前端源码解析
    堆与优先队列
    LSD-SLAM简介
    直接法和特征点法的区别与优缺点
    CV::Mat介绍
    C++ 位运算
    OPENCV重要函数
    C++ 优先队列
    特征点法的巅峰之作—ORBSLAM2
  • 原文地址:https://www.cnblogs.com/hofmann/p/11802034.html
Copyright © 2020-2023  润新知