Update mobile.js

This commit is contained in:
Harvey committed 2021-12-31 18:05:44 +08:00
1 parent 008bdad305
commit 9ba7a87fcf
1 file changed
+4 -1
+4 -1
View File
@@ -6,7 +6,6 @@ var art = new Artplayer({
title: 'One More Time One More Chance',
poster: '/assets/sample/poster.jpg',
autoSize: true,
autoHeight: true,
loop: true,
mutex: true,
theme: '#ffad00',
@@ -59,6 +58,10 @@ var art = new Artplayer({
whitelist: ['*'],
});
art.on('ready', function () {
art.autoHeight = true;
});
Artplayer.config.events.forEach(function (item) {
art.on('video:' + item, function (event) {
console.log('video: ' + event.type);