添加声音连续播放

This commit is contained in:
kron
2025-11-12 11:39:17 +08:00
parent 59a2b173a6
commit 6b96087b68
3 changed files with 89 additions and 19 deletions

View File

@@ -26,6 +26,18 @@ onBeforeUnmount(() => {
<template>
<Container title="音频测试">
<view class="container">
<view>
<text>连续播放1</text>
<button hover-class="none" @click="playAudio(['第一轮', '请蓝方射箭'])">
播放
</button>
</view>
<view>
<text>连续播放2</text>
<button hover-class="none" @click="playAudio(['第二轮', '请红方射箭'])">
播放
</button>
</view>
<view v-for="key in Object.keys(audioFils)" :key="key">
<text>{{ key }}</text>
<text v-if="!loaded[key]">未加载</text>