mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
add Artplayer.AUTO_PLAYBACK_MIN
This commit is contained in:
1 parent
60b61dd7b1
commit
7e65d486bc
5 files changed
+21
-38
No files matched your search
@@ -36,7 +36,7 @@ export default function autoPlayback(art) {
|
||||
art.on('ready', () => {
|
||||
const times = storage.get('times') || {};
|
||||
const currentTime = times[art.option.url];
|
||||
if (currentTime) {
|
||||
if (currentTime && currentTime >= constructor.AUTO_PLAYBACK_MIN) {
|
||||
append($close, icons.close);
|
||||
setStyle($autoPlayback, 'display', 'flex');
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export default class Plugins {
|
||||
this.add(lock);
|
||||
}
|
||||
|
||||
if (option.autoPlayback) {
|
||||
if (option.autoPlayback && !option.isLive) {
|
||||
this.add(autoPlayback);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user