隐藏WebTorrent原生控制条,避免与Dplayer控制条重叠,环境:Chrome 78.0.3904.97, DPlayer.min.js cb95daa, WebTorrent 0.107.17
@@ -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', () => {