From 2f1662a0ff8fe3175f7a29e4c31ea9d27b9ce1eb Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 2 Feb 2021 12:52:13 +0800 Subject: [PATCH] =?UTF-8?q?edit=20HttpReadAloudService.kt=20=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=A3=80=E6=B5=8B,=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=9C=97?= =?UTF-8?q?=E8=AF=BB=E4=B8=AD=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/HttpReadAloudService.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 6cefb4e4c..5ad4a9b20 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -116,12 +116,6 @@ class HttpReadAloudService : BaseReadAloudService(), val fis = FileInputStream(file) - // 用来检测下载的文件是否为可正常播放的音频 (如果不是的话抛出异常,没找到更秒的办法,先这么着吧) - MediaPlayer().apply { - setDataSource(fis.fd) - prepare() - release() - } if (index == nowSpeak) { @Suppress("BlockingMethodInNonBlockingContext") playAudio(fis.fd)