Dplayer 学习笔记

!!!
<link rel="stylesheet" href="https://www.6zgm.com/usr/plugins/DPlayer/dist/DPlayer.min.css">
<div id="dplayer"></div>
<script src="https://www.6zgm.com/usr/plugins/DPlayer/plugin/hls.min.js"></script>
<script src="https://www.6zgm.com/usr/plugins/DPlayer/plugin/flv.min.js"></script>
<script src="https://www.6zgm.com/usr/plugins/DPlayer/dist/DPlayer.min.js"></script>
<script>
const dp = new DPlayer({
    container: document.getElementById('dplayer'),
    autoplay: false,
    theme: '#FADFA3',
    loop: false,
    lang: 'zh',
    hotkey: true, 
    preload: 'auto',
    screenshot: true,
    video: {
        url: 'https://www.6zgm.com/usr/ms/3_Torrent/%E5%A5%B3%E6%9C%8B%E5%8F%8B%E5%B8%AE%E7%94%B7%E6%9C%8B%E5%8F%8B%E6%89%93%E9%A2%86%E5%B8%A6%EF%BC%8C%E6%9C%80%E8%90%8C%E8%BA%AB%E9%AB%98%E5%B7%AE%E6%AD%A3%E5%A5%BD%E5%90%88%E9%80%82.mp4',
        pic: 'demo.jpg',
        thumbnails: 'thumbnails.jpg'
    },
    danmaku: {
        id: 'demo',
        api: 'https://dplayer.moerats.com/'
    }
});
</script>
!!!
最后修改:2019 年 09 月 10 日 11 : 19 PM
如果觉得我的文章对你有用,请随意赞赏,感谢您支持6zgm.com !

发表评论

1 条评论

  1. zgm

    iframe组织形式

    !!!
    <div itemscope itemtype="https://schema.org/VideoObject"><meta itemprop="uploadDate" content="Sat Sep 07 2019 10:53:16 GMT+0800 (中国标准时间)"/><meta itemprop="name" content="女朋友帮男朋友打领带,最萌身高差正好合适"/><div style="position:relative; overflow:hidden; padding-bottom:56.25%"> <iframe src="https://p2p.6zgm.com/index.php?url=https://type.6zgm.com/usr/uploads/2019/08/572236050.webm" width="100%" height="100%" frameborder="0" scrolling="no" style="position:absolute;" allowfullscreen></iframe> </div></div>
    !!!