爱死亡机器人(DPLAYER)

admin 2020-01-26 PM 235℃ 0条

Dplayer官网

GitHub项目地址

Document

Dplayer代码

<!DOCTYPE html>
<html lang="en">
<center>    
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer@1.25.0/dist/DPlayer.min.css">
    <style>
     #dplayer{
             max-width: 590px;
             height: 330px;
             margin: 0 auto;
}
   </style>
</head>


<body>
<div id="dplayer"></div>
   <script src="https://cdn.jsdelivr.net/npm/dplayer@1.25.0/dist/DPlayer.min.js"></script> 
   <script>
      var dp = new DPlayer({
    container: document.getElementById('dplayer'),
    screenshot: true,
    video: {
        url: 'https://gss3.baidu.com/6LZ0ej3k1Qd3ote6lo7D0j9wehsv/tieba-movideo/274726032_3b441fce7eef11ae0ed614f5349a678d_d5bc9a15d29a.mp4',
        pic: 'http://lbxx.devgox.com/upload/forum/5.png',
        thumbnails: 'http://lbxx.devgox.com/upload/forum/5.png',
                }, 
});
   </script>
</center>  
</body>
</html>



标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~