<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          DPlayer彈幕視頻播放器

          聯(lián)合創(chuàng)作 · 2023-09-24 05:44

          一個很好看的彈幕視頻播放器。

          Demo

          屏幕截圖

          安裝

          $ npm install dplayer --save

          用法

          HTML

          <link rel=" sheet" href="DPlayer.min.css">
          <!-- ... -->
          <div id="player1" class="dplayer"></div>
          <!-- ... -->
          <script src="DPlayer.min.js"></script>

          JS

          var dp = new DPlayer(option);
          dp.init();

          Options

          var option = {
              element: document.getElementById('player1'),                       // Optional, player element
              autoplay: false,                                                   // Optional, autoplay video, not supported by mobile browsers
              theme: '#FADFA3',                                                  // Optional, theme color, default: #b7daff
              loop: true,                                                        // Optional, loop play music, default: true
              video: {                                                           // Required, video info
                  url: '若能綻放光芒.mp4',                                         // Required, video url
                  pic: '若能綻放光芒.png'                                          // Optional, music picture
              },
              danmaku: {                                                         // Optional, showing danmaku
                  id: '9E2E3368B56CDBB4',                                        // Required, danmaku id, MUST BE UNIQUE, CAN NOT USE THESE IN YOUR NEW PLAYER: `https://dplayer.daoapp.io/list`
                  api: 'https://dplayer.daoapp.io/',                             // Required, danmaku api
                  token: 'tokendemo',                                            // Optional, danmaku token for api
                  maximum: 1000                                                  // Optional, maximum quantity of danmaku
              }
          }

          API

          • dp.init()

          • dp.play()

          • dp.pause()

             

          瀏覽 49
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  99热这里都是精品 | 久操网大香蕉 | 精品无码毛片 | 日批网站全免费 | 亚州欧美 |