mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
Update mobile.js
This commit is contained in:
1 parent
008bdad305
commit
9ba7a87fcf
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user