mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
添加手机白名单
This commit is contained in:
1 parent
ae8a916118
commit
df9fab27eb
7 files changed
+103
-14
No files matched your search
@@ -6,6 +6,7 @@ import merge from 'deepmerge';
|
||||
import * as utils from './utils';
|
||||
import scheme from './scheme';
|
||||
import config from './config';
|
||||
import Whitelist from './whitelist';
|
||||
import Template from './template';
|
||||
import I18n from './i18n';
|
||||
import Player from './player';
|
||||
@@ -37,6 +38,10 @@ class Artplayer extends Emitter {
|
||||
return '__VERSION__';
|
||||
}
|
||||
|
||||
static get env() {
|
||||
return '__ENV__';
|
||||
}
|
||||
|
||||
static get config() {
|
||||
return config;
|
||||
}
|
||||
@@ -76,6 +81,7 @@ class Artplayer extends Emitter {
|
||||
controls: [],
|
||||
highlight: [],
|
||||
plugins: [],
|
||||
whitelist: [],
|
||||
thumbnails: {
|
||||
url: '',
|
||||
number: 60,
|
||||
@@ -115,6 +121,7 @@ class Artplayer extends Emitter {
|
||||
utils.errorHandle(false, 'Cannot mount multiple instances on the same dom element');
|
||||
}
|
||||
|
||||
this.whitelist = new Whitelist(this);
|
||||
this.template = new Template(this);
|
||||
this.storage = new Storage(this);
|
||||
this.i18n = new I18n(this);
|
||||
|
||||
Reference in new issue
Block a user