声音播放
This commit is contained in:
parent
24df4cb070
commit
6e1ff7fb56
|
|
@ -113,12 +113,18 @@
|
|||
</div>
|
||||
|
||||
<div style="margin-bottom: 20px;">
|
||||
<div style="font-size: 13px; font-weight: bold; color: #64748b; margin-bottom: 8px;">App 弹窗交互</div>
|
||||
<div style="font-size: 13px; font-weight: bold; color: #64748b; margin-bottom: 8px;">App 弹窗与音频交互</div>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 8px;">
|
||||
<button class="btn" style="margin:0; padding:10px; font-size:13px; background: #e11d48;" onclick="triggerRestartDialog()">触发重启提示</button>
|
||||
<button class="btn" style="margin:0; padding:10px; font-size:13px; background: #0d9488;" onclick="triggerJsonDialog()">发送 JSON 弹窗</button>
|
||||
<button class="btn" style="margin:0; padding:10px; font-size:13px; background: #8b5cf6;" onclick="playNativeAlert()">播放提示音</button>
|
||||
<button class="btn" style="margin:0; padding:10px; font-size:13px; background: #475569;" onclick="stopNativeAlert()">停止播放</button>
|
||||
</div>
|
||||
<div style="margin-top: 8px;">
|
||||
<span class="ptt-label">提示音播放次数:</span>
|
||||
<input type="number" id="alert-count" class="ws-input" value="3" style="margin-bottom: 5px;">
|
||||
<span class="ptt-label">提示音音量 (0.0 - 1.0):</span>
|
||||
<input type="text" id="alert-volume" class="ws-input" value="1.0" style="margin-bottom: 5px;">
|
||||
<span class="ptt-label">提示标题:</span>
|
||||
<input type="text" id="dialog-title" class="ws-input" value="系统通知" style="margin-bottom: 5px;">
|
||||
<span class="ptt-label">提示内容:</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue