Spaces:
Sleeping
Sleeping
Download dashboard/capture.html from JuanCS-Dev/twitch-byte-bot: direct link, hf CLI and curl.
- Browser
- Download file 4.58 kB
-
https://huggingface.co/spaces/JuanCS-Dev/twitch-byte-bot/resolve/main/dashboard/capture.html
- Command line
-
hf download hf://spaces/JuanCS-Dev/twitch-byte-bot/dashboard/capture.html
-
curl -L -o capture.html https://huggingface.co/spaces/JuanCS-Dev/twitch-byte-bot/resolve/main/dashboard/capture.html
4.58 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="theme-color" content="#fff4ec" /> | |
| <title>Byte Vision · Captura de Tela</title> | |
| <link rel="stylesheet" href="/dashboard/styles/studio.css" /> | |
| <style> | |
| .cap-shell { | |
| max-width: 760px; | |
| margin: 0 auto; | |
| padding: 22px 18px 40px; | |
| } | |
| .cap-card { | |
| background: var(--st-card-solid); | |
| border-radius: var(--st-radius); | |
| box-shadow: var(--st-shadow); | |
| padding: 22px; | |
| margin-bottom: 16px; | |
| } | |
| .cap-card h1 { | |
| margin: 0 0 4px; | |
| font-size: 1.4rem; | |
| } | |
| .cap-card p.sub { | |
| margin: 0 0 16px; | |
| color: var(--st-ink-soft); | |
| font-size: 0.92rem; | |
| } | |
| .cap-row { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| align-items: flex-end; | |
| margin-bottom: 14px; | |
| } | |
| .cap-field { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| flex: 1; | |
| min-width: 160px; | |
| } | |
| .cap-field label { | |
| font-size: 0.78rem; | |
| font-weight: 700; | |
| color: var(--st-ink-soft); | |
| } | |
| .cap-field input { | |
| padding: 11px 13px; | |
| font-size: 1rem; | |
| border: 1px solid var(--st-border); | |
| border-radius: var(--st-radius-sm); | |
| font-family: inherit; | |
| } | |
| .cap-buttons { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .cap-buttons button { | |
| flex: 1; | |
| padding: 13px; | |
| font-size: 1rem; | |
| font-weight: 700; | |
| border: none; | |
| border-radius: var(--st-radius-sm); | |
| cursor: pointer; | |
| font-family: inherit; | |
| } | |
| #captureStart { | |
| color: #fff; | |
| background: linear-gradient(155deg, #9d6bff, #7c3aed); | |
| } | |
| #captureStop { | |
| color: var(--st-ink); | |
| background: rgba(120, 90, 180, 0.12); | |
| } | |
| #captureStart:disabled, | |
| #captureStop:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .cap-preview { | |
| width: 100%; | |
| border-radius: var(--st-radius-sm); | |
| background: #00000010; | |
| aspect-ratio: 16 / 9; | |
| object-fit: contain; | |
| } | |
| .cap-status { | |
| margin-top: 14px; | |
| padding: 12px 14px; | |
| border-radius: var(--st-radius-sm); | |
| font-size: 0.92rem; | |
| background: rgba(120, 90, 180, 0.08); | |
| } | |
| .cap-ok { | |
| color: #166534; | |
| background: rgba(34, 197, 94, 0.12); | |
| } | |
| .cap-warn { | |
| color: #92400e; | |
| background: rgba(245, 158, 11, 0.14); | |
| } | |
| .cap-error { | |
| color: #991b1b; | |
| background: rgba(239, 68, 68, 0.12); | |
| } | |
| .cap-foot { | |
| text-align: center; | |
| font-size: 0.82rem; | |
| color: var(--st-ink-soft); | |
| } | |
| .cap-foot a { | |
| color: var(--st-accent); | |
| font-weight: 600; | |
| text-decoration: none; | |
| } | |
| </style> | |
| </head> | |
| <body class="studio"> | |
| <div class="cap-shell"> | |
| <div class="cap-card"> | |
| <h1>Byte Vision — Captura</h1> | |
| <p class="sub"> | |
| Compartilhe a tela/janela do jogo. O Byte recebe um frame a cada | |
| poucos segundos e passa a enxergar a sua live. | |
| </p> | |
| <div class="cap-row"> | |
| <div class="cap-field"> | |
| <label for="captureToken">Admin token</label> | |
| <input id="captureToken" type="password" autocomplete="off" placeholder="cole o token" /> | |
| </div> | |
| <div class="cap-field" style="max-width: 130px"> | |
| <label for="captureInterval">Intervalo (s)</label> | |
| <input id="captureInterval" type="number" min="6" max="60" value="6" /> | |
| </div> | |
| </div> | |
| <div class="cap-buttons"> | |
| <button id="captureStart" type="button">Compartilhar tela</button> | |
| <button id="captureStop" type="button" disabled>Parar</button> | |
| </div> | |
| <p id="captureStatus" class="cap-status cap-info">Pronto. Cole o token e compartilhe a tela.</p> | |
| </div> | |
| <div class="cap-card"> | |
| <video id="captureVideo" class="cap-preview" muted playsinline></video> | |
| <canvas id="captureCanvas" style="display: none"></canvas> | |
| </div> | |
| <p class="cap-foot"> | |
| Visão alimenta clipes e comentários do Byte · | |
| <a href="/studio">voltar ao Studio →</a> | |
| </p> | |
| </div> | |
| <script type="module" src="/dashboard/features/capture/main.js"></script> | |
| </body> | |
| </html> | |