Espelhamento de tela (captura + WebRTC + prévia com retângulo)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 40/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start from index.ts to see how public exports are declared and where a new createScreenCapture entry point would sit, then look at ./map, ./kit and VideoPlayer for the existing component and injection conventions, and at #668 to confirm voice/video rooms are separate. The acceptance criteria in the issue double as the test file: mock getDisplayMedia and RTCPeerConnection, assert video.cursor, setFocusBehavior ordering, NotAllowedError rejection, and addTrack per track. Done means those five checks pass plus a <TrackPreview> whose arrow keys step 1% and whose aria-valuetext reports the region in px. Expect to design the API shape before writing it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Versão: @codeatlasdev/ui 4.6.0 · código lido em main (950628f2) · classe: lacuna (migração do AC)
Problema
O AC depende deste comportamento hoje e a lib não o oferece. Sem ele, a migração perde qualidade no desktop, no mobile ou no PWA.
O que a lib já oferece (para não duplicar) e o que falta
(leitura de origin/main, index.ts sem exports de captura) não há getDisplayMedia, WebRTC nem prévia de track. ./map, ./kit e VideoPlayer não cobrem. #668 cobre salas de voz/vídeo (StageGrid, CallControls), mas não captura de tela.
Referência no AC
Caminhos do repo AC (repo privado, só caminho):
apps/web/src/lib/cast/sender.ts:56-104 (CastSender, captureDisplay), :201-205 (new RTCPeerConnection, addTrack), sender-encoder.ts:16-19 (navigator.mediaDevices.getDisplayMedia), sender-encoder.ts:37 (preferH264), constraints.ts:61-65 (1080p, dicas Chromium), capture-controller.ts:36-51 (setFocusBehavior só após getDisplayMedia); components/videowall-cast/cast-area-picker.tsx:115-120, 177-185 (prévia <video> do track, retângulo de 1 px = 1 px da TV).
Defeitos do AC (verificados por leitura do código): (leitura) o retângulo de área só se move com ponteiro (cast-area-picker.tsx:177-179). Há alternativa por rádio (Centro, Esquerda, Direita), mas não por teclado para posição fina.
Proposta
createScreenCapture({ hint: 'motion'|'detail', cursor, maxSize: {w:1920,h:1080} }) (headless, injetável: getDisplayMedia e RTCPeerConnection) e <TrackPreview track bind:region> com retângulo arrastável e teclado. Estatísticas e H.264 como opções.
Critério de aceite (testável)
- Com
getDisplayMediainjetado,createScreenCapturechama a função comvideo.cursoralwaysquandocursor=trueeneverquandofalse. -
setFocusBehavioré chamado só depois do retorno degetDisplayMedia; se lançar, o stream segue e o motivo vai só paradebug. - Recusa do usuário (
NotAllowedError) rejeita a promessa sem tocar no controlador. -
<TrackPreview>com retângulo: setas movem em passos de 1% e oaria-valuetextdiz a área em px. - Em teste,
RTCPeerConnectioninjetado recebeaddTrackpara cada track do stream.
Mãe: #1089
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 3
- Merge trung bình
- 5 giờ 21 phút
- Pull request đã merge (30 ngày)
- 378
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeatlasdev/ui
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codeatlasdev/ui#1340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:a11y area:components bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codeatlasdev/ui#1336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
codeatlasdev/ui#1329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
codeatlasdev/ui#1292 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:components enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
codeatlasdev/ui#1198 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codeatlasdev/ui
Issue tương tự
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automated issue report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/dashboard kind/bug QA/dev-automation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug pydanty:is-working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pydantic/pydantic-ai#13939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
self-host
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
funmusicplace/mirlo#2625 ·
Maintainer thường phản hồi trong vòng 1 ngày