mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
bugfix
This commit is contained in:
1 parent
73283a838a
commit
ca9fa0981b
21 files changed
+295
-105
No files matched your search
+7
-4
@@ -1,5 +1,6 @@
|
||||
import './style/index.scss';
|
||||
import validOption from './utils/validOption';
|
||||
import 'balloon-css/balloon.min.css';
|
||||
import validOption from './verification/player';
|
||||
import config from './config';
|
||||
import Emitter from 'tiny-emitter';
|
||||
import Template from './template';
|
||||
@@ -41,7 +42,7 @@ class Artplayer extends Emitter {
|
||||
|
||||
static get DEFAULTS() {
|
||||
return {
|
||||
container: document.querySelector('.artplayer'),
|
||||
container: '.artplayer',
|
||||
url: '',
|
||||
poster: '',
|
||||
volume: 0.7,
|
||||
@@ -54,8 +55,10 @@ class Artplayer extends Emitter {
|
||||
loading: '',
|
||||
theme: '#1aafff',
|
||||
hotkey: true,
|
||||
subtitle: '',
|
||||
subtitleStyle: {},
|
||||
subtitle: {
|
||||
url: '',
|
||||
style: {}
|
||||
},
|
||||
controls: [],
|
||||
lang: navigator.language.toLowerCase()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user