Adds the explicit Windows WGC/D3D11 hardware-only Media Foundation H.264 source, process-tree audio, direct Go/Pion fanout, source-aware UI/gate, and unique evaluation package helper. Browser VP8 remains the default. Local acceptance and bounded real-device evidence are recorded in the PR; GitHub jobs were billing-blocked before executing any step.
77 lines
3.5 KiB
HTML
77 lines
3.5 KiB
HTML
<!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>
|
||
<canvas id="native-preview" width="1280" height="720" hidden></canvas>
|
||
<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>
|
||
<option value="native-h264">H.264 (native window hardware)</option>
|
||
</select>
|
||
</label>
|
||
<label>
|
||
<span>目标窗口</span>
|
||
<span class="select-row">
|
||
<select id="window-target"><option value="">关闭窗口音频</option></select>
|
||
<button id="refresh-windows" 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>
|