소스 검색

Hide native controls (overlap with Dplayer)

隐藏WebTorrent原生控制条,避免与Dplayer控制条重叠,环境:Chrome 78.0.3904.97, DPlayer.min.js cb95daa, WebTorrent 0.107.17
YuanMing 5 년 전
부모
커밋
bfcb545407
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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', () => {