Browse Source

Hide native controls (overlap with Dplayer)

隐藏WebTorrent原生控制条,避免与Dplayer控制条重叠,环境:Chrome 78.0.3904.97, DPlayer.min.js cb95daa, WebTorrent 0.107.17
YuanMing 5 years ago
parent
commit
bfcb545407
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/js/player.js

+ 1 - 0
src/js/player.js

@@ -421,6 +421,7 @@ class DPlayer {
                                 const file = torrent.files.find((file) => file.name.endsWith('.mp4'));
                                 file.renderTo(this.video, {
                                     autoplay: this.options.autoplay,
+                                    controls: false
                                 });
                             });
                             this.events.on('destroy', () => {