From 87e8cdc9e02ba2f2ee94efa9f8f3d67bcdd6eee4 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Fri, 26 Oct 2018 17:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=AA=E5=9B=BE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controls/index.js | 2 +- src/index.js | 1 + src/verification/scheme.js | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controls/index.js b/src/controls/index.js index 81d191aac..469d51209 100644 --- a/src/controls/index.js +++ b/src/controls/index.js @@ -59,7 +59,7 @@ export default class Controls { })); this.add(new Screenshot({ - disable: false, + disable: !this.art.option.screenshot, position: 'right', index: 20 })); diff --git a/src/index.js b/src/index.js index 58426604e..cc4dc8141 100644 --- a/src/index.js +++ b/src/index.js @@ -53,6 +53,7 @@ class Artplayer extends Emitter { height: 90, column: 10 }, + screenshot: true, autoplay: false, loop: false, type: '', diff --git a/src/verification/scheme.js b/src/verification/scheme.js index 46405cd6b..4b314c47d 100644 --- a/src/verification/scheme.js +++ b/src/verification/scheme.js @@ -55,6 +55,9 @@ export default { } } }, + screenshot: { + type: 'boolean' + }, autoplay: { type: 'boolean' },