subtitle button; subtitle events

This commit is contained in:
DIYgod
2017-09-24 01:57:06 +08:00
parent 6c36e1afd9
commit c145ecfe90
14 changed files with 88 additions and 13 deletions
+4 -2
View File
@@ -6,13 +6,15 @@ class User {
opacity: 'dplayer-danmaku-opacity',
volume: 'dplayer-volume',
unlimited: 'dplayer-danmaku-unlimited',
danmaku: 'dplayer-danmaku-show'
danmaku: 'dplayer-danmaku-show',
subtitle: 'dplayer-subtitle-show'
};
this.default = {
opacity: 0.7,
volume: player.options.volume || 0.7,
unlimited: (player.options.danmaku && player.options.danmaku.unlimited ? 1 : 0) || 0,
danmaku: 1
danmaku: 1,
subtitle: 1
};
this.data = {};