Files
piik/native/sender/internal/app/ui/index.html
T
AAA 42d7f743cb feat(native): add window-scoped process audio (#93)
Add opt-in Windows 11 target-process audio capture, one AudioEncoder Opus stream, and one shared Pion audio track beside native video.
2026-08-21 02:44:46 +08:00

75 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Screener Sender</title>
<link rel="stylesheet" href="/styles.css" />
</head>
<body>
<header class="app-header">
<div class="brand"><span class="brand-mark">S</span>Screener Sender</div>
<span id="status" class="status">未开始</span>
</header>
<main>
<section class="stage" aria-labelledby="share-title">
<div class="stage-heading">
<div>
<h1 id="share-title">屏幕分享</h1>
<p id="viewer-count">0 位已分配/连接中</p>
</div>
<button id="stop" class="button secondary" type="button" hidden>结束分享</button>
</div>
<div class="preview-shell">
<video id="preview" autoplay muted playsinline></video>
<div id="empty-state" class="empty-state">选择屏幕后,邀请链接会显示在这里</div>
</div>
<div id="invite" class="invite" hidden>
<a id="invite-link" target="_blank" rel="noopener noreferrer"></a>
<button id="copy" class="icon-button" type="button" title="复制邀请链接" aria-label="复制邀请链接">⧉</button>
</div>
</section>
<aside class="controls">
<label>
<span>服务器</span>
<input id="server-url" type="url" value="https://share.bonfire.icu" autocomplete="url" required />
</label>
<label>
<span>访问密码</span>
<input id="password" type="password" autocomplete="current-password" />
</label>
<label>
<span>Codec</span>
<select id="codec">
<option value="vp8">VP8 (default)</option>
<option value="h264">H.264 (hardware preference)</option>
</select>
</label>
<label>
<span>目标进程音频</span>
<span class="select-row">
<select id="audio-target"><option value="">关闭</option></select>
<button id="refresh-audio" class="icon-button" type="button" title="刷新窗口列表" aria-label="刷新窗口列表">↻</button>
</span>
</label>
<p class="audio-note">请在浏览器画面选择器中选择同一目标。音频只包含所选进程树,失败时不会改用系统混音。</p>
<button id="start" class="button primary" type="button">开始分享</button>
<p id="error" class="error" role="alert"></p>
<details>
<summary>技术信息</summary>
<dl>
<div><dt>画面</dt><dd>1280 × 720 · 30 FPS</dd></div>
<div><dt>采集实况</dt><dd id="capture-diagnostic">未知</dd></div>
<div><dt>编码</dt><dd id="encoder-diagnostic">VP8 · 3 Mbps 上限 · 单对象</dd></div>
<div><dt>本地桥接</dt><dd id="bridge-diagnostic">尚无数据</dd></div>
<div><dt>Helper</dt><dd id="helper-diagnostic">尚无数据</dd></div>
<div><dt>出边</dt><dd id="edge-diagnostic">无活动媒体边</dd></div>
<div><dt>音频</dt><dd id="audio-status">关闭</dd></div>
</dl>
</details>
</aside>
</main>
<script src="/app.js" type="module"></script>
</body>
</html>