From a0ea93854c28e8d8ac8dbe4c6aefd65f20df140d Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Fri, 24 May 2024 21:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4inner-audio=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F/=E8=B7=AF=E5=BE=84=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/inner-audio/inner-audio-format.uvue | 38 +++++++++++++------ pages/API/inner-audio/inner-audio-path.uvue | 10 ++++- pages/API/inner-audio/inner-audio.uvue | 2 +- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/pages/API/inner-audio/inner-audio-format.uvue b/pages/API/inner-audio/inner-audio-format.uvue index 7b9fb175..9eec12ab 100644 --- a/pages/API/inner-audio/inner-audio-format.uvue +++ b/pages/API/inner-audio/inner-audio-format.uvue @@ -8,6 +8,14 @@ {{item.format}} + + + 不支持的音频格式 + + + {{item.format}} + + @@ -53,18 +61,24 @@ format: 'wav', src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.wav' }, - // { - // format: 'wma', - // src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.wma' - // }, - // { - // format: 'aiff', - // src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.aiff' - // }, - // { - // format: 'caf', - // src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.caf' - // }, + ] as Array, + notSupportFormats:[ + { + format: 'wma', + src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.wma' + }, + { + format: 'aiff', + src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.aiff' + }, + { + format: 'caf', + src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.caf' + }, + { + format: '错误格式', + src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.wmaa' + }, ] as Array } }, diff --git a/pages/API/inner-audio/inner-audio-path.uvue b/pages/API/inner-audio/inner-audio-path.uvue index 003320d6..3b9ad2ae 100644 --- a/pages/API/inner-audio/inner-audio-path.uvue +++ b/pages/API/inner-audio/inner-audio-path.uvue @@ -2,7 +2,7 @@ - 支持的音频路径示例 + 音频路径示例 {{item.description}} @@ -36,6 +36,14 @@ description: '网络路径', src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/ForElise.mp3' }, + { + description: '不存在的音频', + src: 'https://web-ext-storage.dcloud.net.cn/uni-app-x/audio/invalid_url.mp3' + }, + { + description: '错误路径', + src: '../static/test-audio/ForElise.mp3' + }, ] as Array } }, diff --git a/pages/API/inner-audio/inner-audio.uvue b/pages/API/inner-audio/inner-audio.uvue index bf4991c4..1f3b7e00 100644 --- a/pages/API/inner-audio/inner-audio.uvue +++ b/pages/API/inner-audio/inner-audio.uvue @@ -35,7 +35,7 @@ - + -- GitLab