优化移动端UI

This commit is contained in:
Harvey committed 2020-05-15 11:39:10 +08:00
1 parent beea013daf
commit 7b3913e318
13 files changed
+96 -55

No files matched your search

+4 -3
View File
@@ -32,8 +32,9 @@ class Artplayer extends Emitter {
this.option = validator(utils.mergeDeep(Artplayer.option, option), scheme);
this.isFocus = false;
this.isDestroy = false;
this.ua = utils.userAgent;
this.isMobile = utils.isMobile();
this.userAgent = utils.userAgent;
this.isMobile = utils.isMobile;
this.isWechat = utils.isWechat;
this.whitelist = new Whitelist(this);
this.template = new Template(this);
this.events = new Events(this);
@@ -148,7 +149,7 @@ class Artplayer extends Emitter {
},
moreVideoAttr: {
controls: false,
preload: utils.isSafari() ? 'auto' : 'metadata',
preload: utils.isSafari ? 'auto' : 'metadata',
},
icons: {},
customType: {},