From f38140a8fdd7fbd1e55293fbf2ae1f14e65d1751 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Wed, 13 Nov 2024 15:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9share=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E4=B8=8E=E9=9F=B3=E9=A2=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-inner-audio-context.uvue | 7 ++++--- .../share-with-system/share-with-system.uvue | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 12 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 0eb3fa0f..2dd3522f 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 @@ -130,7 +130,7 @@ this.onEnded() }, onUnload() { - if (this._audioContext != null && this.isPlaying) { + if (this._audioContext != null) { if (this.isPlaying) { this.stop(); } @@ -151,8 +151,9 @@ this._isChanging = true; }, onchange(e : UniSliderChangeEvent) { - console.log(e, 'e'); + let pos = e.detail.value; + console.log('pos', pos); this._audioContext!.seek(pos); this.onSeeking() this.onSeeked() @@ -164,7 +165,7 @@ this.onSeeked() this._isChanging = false; }, - startTimeInput(e : InputEvent) { + startTimeInput(e : UniInputEvent) { let startTimeValue = parseInt(e.detail.value) this._audioContext!.startTime = startTimeValue; this.onchangeValue(startTimeValue) diff --git a/pages/API/share-with-system/share-with-system.uvue b/pages/API/share-with-system/share-with-system.uvue index cb59e342..40e2acae 100644 --- a/pages/API/share-with-system/share-with-system.uvue +++ b/pages/API/share-with-system/share-with-system.uvue @@ -1,6 +1,6 @@ -- GitLab