From 91082e343c318d8ff90bcfa391e1793b70526a3b Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 26 May 2021 00:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20raw=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E6=92=AD=E6=94=BE=E5=99=A8=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E6=97=A0=E6=B3=95=E7=BB=9F=E8=AE=A1=EF=BC=8C=E5=8F=8A?= =?UTF-8?q?=20raw=20=E6=A8=A1=E5=BC=8F=E9=94=99=E8=AF=AF=E8=B0=83=E7=94=A8?= =?UTF-8?q?=20prepare?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/index.js b/web/index.js index d4f8008..5297288 100644 --- a/web/index.js +++ b/web/index.js @@ -577,7 +577,7 @@ const component_audio_player = { file() { // 如果没有勾选 prepare 则直接播放 // 否则进入 prepare 流程 - if (this.prepare) { + if (this.prepare && this.file.play_back_type === 'stream') { this.prepare_func() } else { this.playing_file = this.file @@ -599,6 +599,9 @@ const component_audio_player = { if (this.prepare) { filesize = this.prepared_filesize } + if (this.playing_file.play_back_type === 'raw') { + filesize = this.playing_file.filesize + } if (filesize < 1024 * 1024) { return filesize }