window.onload = function(){ var dp = new DPlayer({ container:document.getElementById('dpplayer'), autoplay: true, screenshot: true, preload: 'auto', video:{ quality:[{ type:'hls', url: '/20191019/dvoYhYHt/index.m3u8' }], defaultQuality:0 } }); dp.play(); };