diff --git a/theme/classic.html b/theme/classic.html index 1bab642..44a99c0 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -187,9 +187,10 @@ <!--FileName--> -
+
- + + @@ -550,7 +551,7 @@ } - document.getElementById('video-a0').style.height = window.innerHeight + 'px'; + //document.getElementById('video-a0').style.height = window.innerHeight + 'px'; var fileurl = ""; var filename1 = fileurl.substr(0, fileurl.lastIndexOf('.')); var art = new Artplayer({ @@ -558,7 +559,8 @@ container: '.artplayerdiv', url: fileurl, title: fileurl, - autoplay: true, + autoHeight: true, + //autoplay: true, pip: true, autoSize: true, autoMini: true, @@ -673,6 +675,12 @@ state: '', },*/ }); + art.on('ready', (...agrs) => { + console.log(document.getElementById('video-a0').style.height); + //if (document.getElementById('video-a0').style.height == window.innerHeight+'px') document.getElementById('video-a0').style.height = (art.rect.height+3) + 'px'; + //console.log(document.getElementById('video-a0').style.height); + //art.play(); + }) pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdn.bootcss.com/pdf.js/2.3.200/pdf.worker.min.js';