From 622baff76ca1220ad213d147555cc7a09ebb7eb3 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Sun, 17 Nov 2024 22:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=A7=A3=E5=86=B3=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E8=AE=BE=E7=BD=AEplaybackRate=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-inner-audio-context/create-inner-audio-context.uvue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/API/create-inner-audio-context/create-inner-audio-context.uvue b/pages/API/create-inner-audio-context/create-inner-audio-context.uvue index 23efef88..9d842fc7 100644 --- a/pages/API/create-inner-audio-context/create-inner-audio-context.uvue +++ b/pages/API/create-inner-audio-context/create-inner-audio-context.uvue @@ -154,7 +154,6 @@ this._isChanging = true; }, onchange(e : UniSliderChangeEvent) { - let pos = e.detail.value; console.log('pos', pos); this._audioContext!.seek(pos); @@ -277,7 +276,7 @@ playbackRateChange(e : UniRadioGroupChangeEvent) { if (this._audioContext != null && this.isPlaying) { console.log(parseFloat(e.detail.value)) - this._audioContext!.playbackRate = parseFloat(e.detail.value) + this._audioContext!.playbackRate = parseFloat(e.detail.value).toDouble() } }, } -- GitLab