From 38b3b2e1772d18f441d35d18593e469dd11f0f83 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 --- pages.json | 8 ++++---- .../create-inner-audio-context.uvue | 7 ++++--- .../share-with-system/share-with-system.uvue | 19 ++++++++++--------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/pages.json b/pages.json index d47c236e..1c62396c 100644 --- a/pages.json +++ b/pages.json @@ -1097,7 +1097,7 @@ } }, // #endif - // #ifdef WEB || MP || APP + // #ifdef WEB || MP || APP-ANDROID { "path": "pages/API/create-inner-audio-context/create-inner-audio-context", "group": "1,7,9", @@ -1106,7 +1106,7 @@ } }, // #endif - // #ifdef WEB || MP || APP + // #ifdef WEB || MP || APP-ANDROID { "path": "pages/API/create-inner-audio-context/inner-audio-format", "style": { @@ -1114,7 +1114,7 @@ } }, // #endif - // #ifdef WEB || MP || APP + // #ifdef WEB || MP || APP-ANDROID { "path": "pages/API/create-inner-audio-context/inner-audio-path", "style": { @@ -2935,4 +2935,4 @@ ] } ] -} \ No newline at end of file +} 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 568d05dd..d1a67162 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 87a9e2c9..22ab5d83 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