Hide native controls (overlap with Dplayer)

隐藏WebTorrent原生控制条,避免与Dplayer控制条重叠,环境:Chrome 78.0.3904.97, DPlayer.min.js cb95daa, WebTorrent 0.107.17
This commit is contained in:
YuanMing
2019-11-21 22:37:28 +08:00
committed by GitHub
parent 2a7e04df81
commit bfcb545407
+1
View File
@@ -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', () => {